mremolt / fe_testing_workshop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FE Testing Workshop

Prerequisites

To attend the workshop (but just watching and listening is okay, too), you will need:

Installation (mainly for Windows)

  • Install latest LTS Version of Node from https://nodejs.org/
  • Checkout repository via Git ow just download as ZIP (search for green button with Code on it)
  • Optional, if you want to keep your work: First fork the repository into your own Github account, then checkout from there.
  • Open a command line of your choice in the project directory (CMD, Powershell, Git Bash ... all should work).

On command line in project directory type:

npm install
npm run start

Then open in your Webbrowser http://localhost:4200 and have a look at the app we are going to test.

Disclaimer: The API this app uses to load the jokes from is https://api.chucknorris.io/. I was simply to lazy to also provide a backend API ;)

Run the tests

To run the unit|component|API tests with Jest (https://jestjs.io/):

npm run test

The code coverage report for is written to directory coverage.

To run the e2e tests with Playwright (https://playwright.dev/):

npm run e2e

About


Languages

Language:TypeScript 91.9%Language:HTML 6.6%Language:SCSS 0.9%Language:JavaScript 0.6%