Ethan Ordentlich

Results 6 comments of Ethan Ordentlich

Some more tests show me that this is something internal to how IntelliJ reports tests errors (considering that AssertJ behaves the same way). Going to close this and just use...

For completeness, here's the behavior of Junit5, which does not raise ComparisonFailure: ```java @Test @Tag("demo") public void testDuplicateDemoIntJUnit() { int x = 5; org.junit.jupiter.api.Assertions.assertEquals(10, x); } ``` ``` org.opentest4j.AssertionFailedError: Expected...

JUnit 4.12 behavior: no double output, even when a ComparisonFailure is raised: ```java @Test public void testJunit4InJUnit4String() { System.out.println("JUnit version: " + junit.runner.Version.id()); String x = "foo"; assertEquals("bar", x); }...

Oh, here's something interesting - AssertJ does not have duplicating behavior in JUnit4, and it raises junit ComparisonFailure for both int and String: ```java @Test public void testAssertJInJUnit4Int() { int...

Don't think it's quite the first - in the AssertJ issue I linked above, it raises the opentest4j `AssertionFailedError`, but the output is still duplicated.

https://youtrack.jetbrains.com/issue/IDEA-238472