Closed janfb closed 3 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 72.92%. Comparing base (
8efb8e4
) to head (99c8778
). Report is 4 commits behind head on main.
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.83s
which 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.
I changed the
pytest
settings 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).xpassing
SNRE pickling test which was already fixed some time ago.