-
Notifications
You must be signed in to change notification settings - Fork 4
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
Two more system tests. #98
Conversation
Had to tweak HD5File to traverse groups.
apologies – don't really have time for a proper review today. but in general more tests = better so generally happy. only thought is to reduce the system size so we can be more comprehensive i.e. have both 3D and 2D examples, for instance(?) |
I like it. Although perhaps we merge this now (since slow protection >> no protection). And I'll ticket myself to speedup the rest of the tests. |
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.
Putting each test in a new file is resulting in a lot of boilerplate code - it looks like you're running through the same steps each time, so I'd recommend writing one test function an parametrizing it. Something like:
@pytest.mark.parametrize('input_file, reference_file', [('arc_09/in/pstd_fs.mat', 'arc_09/out/pstd_fs.mat'), ...])
def test_tdms():
...
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.
Looks great to me – agree some slow protection is definitely better than no fast protection. However, I'd be inclined to make the tests fast ASAP, to limit the trees we're burning 🌲 🔥
Hi All, I can further shorten the time for tests to complete without compromising the validity of the test. This would mean uploading new test files. Should I do this? |
Hey @prmunro , |
Improvements to language/clarity of developers' documentation. Co-authored-by: David Stansby <dstansby@gmail.com>
This PR is adds two more test cases provided by @prmunro (thanks!) and another 2/4 of #30: a test w/ exi present and a test w/ exdetintegral.
The first is very fast:
The second a little slower (but not the slowest):
And notably I had to tweak the HDF5File class to cope with groups.