Skip to content

Commit

Permalink
Pass extra args to pytest through nox (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjrh authored Sep 10, 2023
1 parent 1499754 commit 1fd8565
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/howto.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
def test(session):
session.install("-rrequirements-dev.txt")
session.install("-e", ".", "--no-build-isolation")
session.run("pytest")
session.run("pytest", *session.posargs)

0 comments on commit 1fd8565

Please sign in to comment.