Repository navigation
test: refactor tests, make xfail strict. - #1177
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1177 +/- ##
===========================================
- Coverage 83.69% 72.92% -10.77%
===========================================
Files 93 94 +1
Lines 7397 7451 +54
===========================================
- Hits 6191 5434 -757
- Misses 1206 2017 +811
Flags with carried forward coverage won't be shown. Click here to find out more. |
manuelgloeckler
left a comment
There was a problem hiding this comment.
Great work 👍 🚀. I tested it locally it works like a charm.
Just one point, which is more one the pytest output. It will return (once intentionally triggered)
_________________________________________________________________________________________________________________________________ test_picklability[SNRE_B-vi] __________________________________________________________________________________________________________________________________
[XPASS(strict)]
....
FAILED tests/save_and_load_test.py::test_picklability[SNRE_B-vi]
1 failed, 4 passed, 7 warnings in 1.83swhich does not give you much information why the test failed (just [XPASS(strict)] ).
Would be great if one could print out there something like "Expected failure but test passed". (Not sure if this is supported in pytest)
I agree that the output here is not so informative. It would be good to connect the FAILED with the corresponding XPASS. Not sure whether that's possible in the settings. |
051ab1e to
f3fffd2
Compare
- fix conditional sampling test - set fast mcmc args warmup steps=1 - fix SNRE pickling test
f3fffd2 to
99c8778
Compare
I changed the
pytestsettings toxfail=strict. This means that when a test that is supposed to fail passes, this will results in a failure (was ignored before). This has the advantage that notice when a bug or missing feature was fixed "by accident" (see SNRE example below).xpassingSNRE pickling test which was already fixed some time ago.