Open Bug 1406071 Opened 2 years ago Updated 11 months ago
Add ability to run only certain pytest subtests to |mach python-test|
https://docs.pytest.org/en/latest/usage.html#specifying-tests-selecting-tests Right now you can only select a file to run, not individual test functions within the file. Pytest has this ability, but there is no way to pass that information on from |mach python-test|.
From bug 1339178 (In reply to Dave Hunt (:davehunt) from comment #18) > I'm not sure how best to achieve this, as we're matching the paths up with > the manifests and then running the test files in separate python processes. > We'd need to preserve everything after the module path, and then pass this > to the process to use as an argument for mozunit so it can reconcile them in > the pytest invocation. Another option might be to allow for a command line > option for the node id, but we'll still need to somehow pass this through to > mozunit. The issue here is that it would be applied against all test paths, > so you wouldn't be able to specify multiple node ids. See > https://docs.pytest.org/en/latest/usage.html#specifying-tests-selecting- > tests for more information on specifying node ids in pytest.
You need to log in before you can comment on or make changes to this bug.