Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: replace nosetest with pytest #2211

Merged
merged 1 commit into from
Apr 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 3 additions & 4 deletions docs/project_info/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,12 @@ The easiest way to run your development version of Snakemake is perhaps to go to

This will make your development version of Snakemake the one called when running snakemake. You do not need to run this command after each time you make code changes.

From the base snakemake folder you call :code:`nosetests` to run all the tests, or choose one specific test. For this to work, Nose (the testing framework we use) can be installed to the conda environment using pip:
From the base snakemake folder you call :code:`pytest` to run all the tests, or choose one specific test:

.. code-block:: console

$ pip install nose
$ nosetests
$ nosetests tests.tests:test_log_input
$ pytest
$ pytest tests/tests.py::test_log_input

If you introduce a new feature you should add a new test to the tests directory. See the folder for examples.

Expand Down