[Git][reproducible-builds/diffoscope][master] Add new, small "Testing" section to CONTRIBUTING.rst
Chris Lamb
gitlab at salsa.debian.org
Fri Jan 3 11:30:17 UTC 2020
Chris Lamb pushed to branch master at Reproducible Builds / diffoscope
Commits:
0beddf10 by Marc Herbert at 2020-01-03T11:18:43+00:00
Add new, small "Testing" section to CONTRIBUTING.rst
"Drive-through" contributor here. As in many other projects, one of the
most time-consuming step before starting to do any actual work is
finding in my bash history (!) the right tox/pytest/test_foo.sh
incantation. No surprise maintainers have to beg for test(s) all the
time ;-P
Signed-off-by: Chris Lamb <lamby at debian.org>
- - - - -
1 changed file:
- CONTRIBUTING.rst
Changes:
=====================================
CONTRIBUTING.rst
=====================================
@@ -17,6 +17,16 @@ changes and submit a *merge request* via Salsa. See `Gitlab documentation
You can also submit bugs about Debian specific issues to the Debian bug tracker.
+Testing
+=======
+
+diffoscope's test suite relies on `pytest <https://docs.pytest.org/>`__;
+to run all tests use ``pytest[-3]``. For faster interactive development
+here's an example of how to run a (much) smaller subset of tests:
+
+ pytest -v --exitfirst -k lib tests/comparators/test_elf.pyc [ --pdb ]
+
+More options in `pytest -h`.
Add a comparator
================
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/0beddf103c9f4d89de4e3321404036c72fb3e34d
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/0beddf103c9f4d89de4e3321404036c72fb3e34d
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20200103/8e8fd6d7/attachment.htm>
More information about the rb-commits
mailing list