Commit e9ad3952 authored by Lyza Danger Gardner's avatar Lyza Danger Gardner Committed by Lyza Gardner

Update developer testing documentation (readthedocs)

parent 72e9e51e
...@@ -109,21 +109,14 @@ Hypothesis uses Karma and mocha for testing. To run all the tests once, run: ...@@ -109,21 +109,14 @@ Hypothesis uses Karma and mocha for testing. To run all the tests once, run:
make test make test
You can filter the tests which are run by running ``make test ARGS='--grep <pattern>'``, You can filter the tests which are run by running ``yarn test --grep <pattern>``.
or ``yarn test --grep <pattern>``. Only test files matching the regex ``<pattern>`` will Only test files matching the regex ``<pattern>`` will be executed.
be executed.
To run tests and automatically re-run them whenever any source files change, run: To run tests and automatically re-run them whenever any source files change, run:
.. code-block:: sh .. code-block:: sh
make test ARGS='--watch' yarn test:watch
or
.. code-block:: sh
yarn test --watch
This command will also serve the tests on localhost (typically `http://localhost:9876`) This command will also serve the tests on localhost (typically `http://localhost:9876`)
so that break points can be set and the browser's console can be used for interactive so that break points can be set and the browser's console can be used for interactive
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment