Skip to content

Commit c409b8d

Browse files
committed
A comment in the pytest.ini about running tests in parallel.
Jackson notes: I also tried running in parallel and ended up with Julia issues. I think --no-julia won't work for us though - we would need to individually label each unit test with either a pytest marker or fixture to indicate that it requires the Julia runtime (see the pyjulia docs). I add that, for me, the test collection seems to cause Julia compilation of everything, on every runner, so it takes for ever. I think it can be a helpful option if you're running a subset of the tests. But I don't think it's a good default.
1 parent 98686ae commit c409b8d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pytest.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ filterwarnings =
1414
# --last-failed to run only the tests which failed on the previous run
1515
# --show-capture no/stdout/stderr/both
1616
# -k "test name" will run only the tests that match the pattern in quotes, i.e. "test_arkane or test_rmg" would run those two tests
17+
# -n auto # will use all available cores, if you first pip install pytest-xdist, but it doesn't work well with julia (so add --no-julia? or give up?)
1718
addopts =
1819
--keep-duplicates
1920
-p julia.pytestplugin

0 commit comments

Comments
 (0)