Update docs on running frontend tests

This commit is contained in:
Winnie Hellmann 2019-03-19 11:46:55 +01:00
parent 79fd1b7efd
commit 4fca4b79f5
1 changed files with 4 additions and 6 deletions

View File

@ -228,14 +228,12 @@ See this [section][vue-test].
### Running frontend tests ### Running frontend tests
`rake karma` runs the frontend-only (JavaScript) tests. For running the frontend tests, you need the following commands:
It consists of two subtasks:
- `rake karma:fixtures` (re-)generates fixtures - `rake karma:fixtures` (re-)generates fixtures.
- `rake karma:tests` actually executes the tests - `yarn test` executes the tests.
As long as the fixtures don't change, `rake karma:tests` (or `yarn karma`) As long as the fixtures don't change, `yarn test` is sufficient (and saves you some time).
is sufficient (and saves you some time).
### Live testing and focused testing ### Live testing and focused testing