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
a6fad102
Commit
a6fad102
authored
Feb 06, 2019
by
Hannah Stepanek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add debug to makefile for interactive test debug
parent
f0f64465
Changes
2
Hide 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 @
a6fad102
...
@@ -8,7 +8,8 @@ help:
...
@@ -8,7 +8,8 @@ help:
@
echo
"make lint Run the code linter(s) and print any warnings"
@
echo
"make lint Run the code linter(s) and print any warnings"
@
echo
"make checkformatting Check code formatting"
@
echo
"make checkformatting Check code formatting"
@
echo
"make format Automatically format code"
@
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 docs Build docs website and serve it locally"
@
echo
"make checkdocs Crash if building the docs website fails"
@
echo
"make checkdocs Crash if building the docs website fails"
@
echo
"make clean Delete development artefacts (cached files, "
@
echo
"make clean Delete development artefacts (cached files, "
...
@@ -26,6 +27,10 @@ else
...
@@ -26,6 +27,10 @@ else
yarn
test
yarn
test
endif
endif
.PHONY
:
servetests
servetests
:
node_modules/.uptodate
gulp test-watch
.PHONY
:
lint
.PHONY
:
lint
lint
:
node_modules/.uptodate
lint
:
node_modules/.uptodate
yarn run lint
yarn run lint
...
...
docs/developers/developing.rst
View file @
a6fad102
...
@@ -128,15 +128,20 @@ Hypothesis uses Karma and mocha for testing. To run all the tests once, run:
...
@@ -128,15 +128,20 @@ 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 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:
To run tests and automatically re-run them whenever any source files change, run:
.. code-block:: sh
.. 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
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