-
Notifications
You must be signed in to change notification settings - Fork 85
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
Handle tests with NIST data as integration tests #230
Conversation
5d6f4be
to
9d88e8a
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #230 +/- ##
==========================================
- Coverage 91.76% 90.10% -1.66%
==========================================
Files 44 49 +5
Lines 7360 10230 +2870
==========================================
+ Hits 6754 9218 +2464
- Misses 606 1012 +406 ☔ View full report in Codecov by Sentry. |
I like the approach. Maybe add a helper script (bash?) to download the NIST files? Downloading the files manually could be a bit tedious. |
also modify assert_almost_equal macro to support option single trailing comma
TODO modify parsing to work with test data from NIST source
004d606
to
2bc3a93
Compare
shell script needs curl, grep, and sed
2bc3a93
to
6f53731
Compare
also drop usage of cfg(test) in tests/ directory
We didn't distribute the integration tests with the last release, but if we did, would we want to share the script along with these tests? |
I would logically see the script as a part of that test suite, so yeah. |
3a7f567
to
9bd4b07
Compare
Will add to CI in another PR, any feedback on this one? |
I tried it on my machine and the script looks good. I think the environment variable works well, no reason to overthink this for a test IMO. Few ideas to make the experience a bit smoother:
|
Thanks for the feedback, think it will be clearer and nicer. Opted for default target directory to be |
Unsure how best to handle these tests, but I think separating them is a good start to not have the data in the repo per #195.
Test suite will rely on environment variable,
"STATRS_NIST_DATA_DIR"
set asconst NIST_DATA_DIR_ENV
, to specify path where the files, some listed below, are located.Note: I am not married to the usage of an environment variable or its name.