Skip to content

Conversation

@austinorr
Copy link

make sure test dependencies are installed with pip install -e .[dev]

run tests in parallel by installing pytest-xdist via pip install pytest-xdist

run test10 and test10specl in parallel with pytest -k test_case -n 2 and both should pass.

try them again in series though, pytest -k test_case and the second one will fail due to shared mutable state in the session.

@rburghol rburghol merged commit a189d50 into HARPgroup:develop-spec-lean May 8, 2024
@rburghol
Copy link

rburghol commented May 8, 2024

Thanks @austinorr btw this:

tests/**/*.h5

is a super smart approach to excluding just testing h5s.

@austinorr
Copy link
Author

I noticed there are a bunch of peoples personal test files listed in the gitignore, so now there’s also a prefix that works on any file or folder that starts with “_no_git*”. Now we don’t need to change the gitignore file everytime a contributor tries something, they can just rename their testing files or directory with the prefix.

rburghol added a commit that referenced this pull request Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants