Skip to content

Commit

Permalink
feat: add test commands to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeezman committed Nov 4, 2023
1 parent 5b709c6 commit 330d050
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,36 @@ Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
The page will reload if you make edits.\
You will also see any lint errors in the console.

### `yarn test`
### `run tests`

Run e2e and component tests (cypress non-headless mode) like so
```bash
yarn run cy-open
```

Run e2e test in headless mode like so
```bash
yarn run cy-run
```

Run component test in headless mode like so
```bash
yarn run cy-comp
```

To create a test coverage report
- while running the application do
```bash
yarn run cy-run
```

- whithout running the application do
```bash
yarn run test-coverage
```

The `coverage` folder contains generated coverage report

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `yarn build`

Expand Down

0 comments on commit 330d050

Please sign in to comment.