Pass extra args to pytest through nox (#123)

master
Caleb Hattingh 2023-09-10 22:40:39 +02:00 committed by GitHub
parent 14997547ee
commit 1fd85657d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -31,6 +31,12 @@ Running the tests is done using:
make test 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 ## 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. 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.

View File

@ -5,4 +5,4 @@ import nox
def test(session): def test(session):
session.install("-rrequirements-dev.txt") session.install("-rrequirements-dev.txt")
session.install("-e", ".", "--no-build-isolation") session.install("-e", ".", "--no-build-isolation")
session.run("pytest") session.run("pytest", *session.posargs)