-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
pytest: introduce runTests function #53142
Conversation
1f866fa
to
e6ee41d
Compare
@GrahamcOfBorg eval |
Ofborg's new maintainer ping algorithm would have requested a review from:
does this seem reasonable? please discuss on NixOS/ofborg#293 |
A simple function that generates a `checkPhase`. It includes a `disabledTests` parameter to conveniently disable tests.
disabledTestIds ? [], # Disable tests that match given node id's. This is useful in case a test in a specific file needs to be disabled. | ||
options ? [], # py.test options. | ||
targets ? [], # py.test files or folders. | ||
variables ? {}, # Environment variables to export. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
variables
is a bit ambiguities. How about environment
or environmentVariables
?
where the runner gets to decide how to invoke the test. |
Just two points here:
|
Regarding hooks, there are two options:
I don't think 1) is a good solution because
Of course, once we settle on the solution. |
Are there any updates on this pull request, please? |
Will continue with hook approach. |
Motivation for this change
A simple function that generates a
checkPhase
. It includes adisabledTests
parameter to conveniently disable tests.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)