JGiven
JGiven copied to clipboard
JUnit5: failed assumptions are handled like failed test cases in JGiven reports
Hi,
if we execute JGiven tests under JUnit5 and an assumption fails, this is still treated like the test case failed because of an exception.
There was a fix that has been delivered for https://github.com/TNG/JGiven/issues/1465 , but we still observe that effect, even with JGiven version 1.3.1.
After debugging this we observed that method JGivenExtension#afterTestExecution(ExtensionContext) treats all Exceptions the same way and makes no difference whether there was a exception caused by assumptions or other reasons.
Also see similar Issue https://github.com/TNG/JGiven/issues/185 for Junit 4.