-
Notifications
You must be signed in to change notification settings - Fork 15
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
Some test modernization #425
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
3b162ce
Use paths based off file location
liamhuber 6c6cbae
Refactor: extract state management
liamhuber 06561e8
Remove tail
liamhuber 709da7f
Update Gpaw tests
liamhuber bed2e90
Update lammps tests
liamhuber cc046da
Tidy gpaw tests
liamhuber b07a13a
Update resources
liamhuber 343776a
Update resources
liamhuber 35fc92e
Merge branch 'use_state' into get_tests_passing_local
liamhuber 613c13c
Use state in sphinx
liamhuber c44014a
Merge master
liamhuber 4c17b4d
Remove unused import
liamhuber 292936f
Merge branch 'use_state' into get_tests_passing_local
liamhuber f4d49f2
Oops I rolled this change back
liamhuber ca733ab
Exploit TestWithProject in lammps tests
liamhuber f6d7ef7
Refactor extract method
liamhuber fc111c7
Don't treat as main
liamhuber 1d1aba9
Tidy
liamhuber 7dcc7d2
Reduce duplication with loop
liamhuber 4f383a1
Add context to VCSGC tests
liamhuber f7c5d28
Remove progress kwarg
liamhuber 25268a5
Merge branch 'master' into get_tests_passing_local
liamhuber File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Since the tests don't work in the terminal I'd like to keep these ones
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.
Ah, sorry, I didn't see this in the mobile app.
Anyhow, it really necessary? I guess if you do
python tests/atomistics/job/test_atomistic.py
it is, but if you dopython -m unittest discover tests/atomistics/job
it will run this and the other ones there... but maybe you can append/test_atomistic.py
to get just these? Tbh I haven't played around with it much from command line, but I'm 99% sure you can swing it this wayThere 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.
Yes, with
python -m unittest path/to/test_file.py
you run all tests in this file (If you point to one specific one, you do not need to discover). So Sam, just make analias run_test_py="python -m unittest discover "
and you may fire any directory you want byrun_test_py test_dir
:)