diff --git a/docs/howto.md b/docs/howto.md index c00256d..ff939d8 100644 --- a/docs/howto.md +++ b/docs/howto.md @@ -31,6 +31,12 @@ Running the tests is done using: make test +The `nox` test session will pass pytest arguments through. For example, +to run only the tests including "simple_search" in the test name, and only +on Python 3.11: + + nox -s test-3.11 -- -k simple_search + ## Working on tantivy-py documentation Please be aware that this documentation is structured using the [Diátaxis](https://diataxis.fr/) framework. In very simple terms, this framework will suggest the correct location for different kinds of documentation. Please make sure you gain a basic understanding of the goals of the framework before making large pull requests with new documentation. diff --git a/noxfile.py b/noxfile.py index bf9c128..4922fff 100644 --- a/noxfile.py +++ b/noxfile.py @@ -5,4 +5,4 @@ import nox def test(session): session.install("-rrequirements-dev.txt") session.install("-e", ".", "--no-build-isolation") - session.run("pytest") + session.run("pytest", *session.posargs)