From 476a95a3f467ec638349ee58db0549f5858a9ff7 Mon Sep 17 00:00:00 2001 From: Patrick Smith Date: Tue, 20 Nov 2018 11:45:34 -0500 Subject: [PATCH] Add notes on js testing to readme --- README.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0b06ab84..5733ee06 100644 --- a/README.md +++ b/README.md @@ -154,18 +154,30 @@ Tests require a test database: createdb atat_test ``` -To run lint, static analysis, and unit tests: +To run lint, static analysis, and Python unit tests: script/test -To run only the unit tests: +To run only the Python unit tests: pipenv run python -m pytest -To re-run tests each time a file is changed: +To re-run Python tests each time a file is changed: pipenv run ptw +This project also runs Javascript tests using jest. To run the Javascript tests: + + yarn test + +To re-run the Javascript tests each time a file is changed: + + yarn test:watch + +To generate coverage reports for the Javascript tests: + + yarn test:coverage + ### Selenium Tests Selenium tests rely on BrowserStack. In order to run the Selenium tests