JGiven icon indicating copy to clipboard operation
JGiven copied to clipboard

JUnit5: failed assumptions are handled like failed test cases in JGiven reports

Open mtthsAtrv opened this issue 9 months ago • 14 comments

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.

grafik

Also see similar Issue https://github.com/TNG/JGiven/issues/185 for Junit 4.

mtthsAtrv avatar May 22 '24 07:05 mtthsAtrv