Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
a97a0ee3
Unverified
Commit
a97a0ee3
authored
Feb 07, 2019
by
Hannah Stepanek
Committed by
GitHub
Feb 07, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #931 from hypothesis/add-interactive-test-command
Add servetests to makefile for interactive test debug
parents
f0f64465
a6fad102
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
Makefile
Makefile
+6
-1
developing.rst
docs/developers/developing.rst
+9
-4
No files found.
Makefile
View file @
a97a0ee3
...
...
@@ -8,7 +8,8 @@ help:
@
echo
"make lint Run the code linter(s) and print any warnings"
@
echo
"make checkformatting Check code formatting"
@
echo
"make format Automatically format code"
@
echo
"make test Run the unit tests"
@
echo
"make test Run the unit tests once"
@
echo
"make servetests Start the unit test server on localhost"
@
echo
"make docs Build docs website and serve it locally"
@
echo
"make checkdocs Crash if building the docs website fails"
@
echo
"make clean Delete development artefacts (cached files, "
...
...
@@ -26,6 +27,10 @@ else
yarn
test
endif
.PHONY
:
servetests
servetests
:
node_modules/.uptodate
gulp test-watch
.PHONY
:
lint
lint
:
node_modules/.uptodate
yarn run lint
...
...
docs/developers/developing.rst
View file @
a97a0ee3
...
...
@@ -128,15 +128,20 @@ Hypothesis uses Karma and mocha for testing. To run all the tests once, run:
make test
You can filter the tests which are run by running ``make test FILTER=<pattern>``.
See the documentation for Mocha's
`grep <https://mochajs.org/#g---grep-pattern>`_ option.
To run tests and automatically re-run them whenever any source files change, run:
.. code-block:: sh
gulp test-watch
make servetests
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
debugging.
You can filter the tests which are run by running ``make test FILTER=<pattern>``.
See the documentation for Mocha's
`grep <https://mochajs.org/#g---grep-pattern>`_ option.
Code Style
----------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment