The "usePhrasedClassNameInRunning" property in
"JUnit5StatelessTestsetInfoReporter" helps a bit:
@DisplayName("FsTest")
public class FsTest extends BehaviorTest {
// ...
}
[INFO] Running FsTest AsyncWriteTest
[ERROR] Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed:
0.636 s <<< FAILURE! -- in FsTest AsyncWriteTest
[ERROR]
org.apache.opendal.behavior.BehaviorTest$AsyncWriteTest.testReadFull --
Time elapsed: 0.594 s <<< FAILURE!
java.lang.AssertionError:
But not in the very end summary:
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] org.apache.opendal.behavior.BehaviorTest$AsyncWriteTest.testReadFull
[ERROR] Run 1: BehaviorTest$AsyncWriteTest.testReadFull:110
You can clone https://github.com/apache/incubator-opendal/pull/3161 and
fail some tests case conditionally for debugging.
Best,
tison.
tison <[email protected]> 于2023年9月23日周六 01:17写道:
> To demostrate the expected manner, I want:
>
> [ERROR] Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed:
> 0.535 s <<< FAILURE! - in
> org.apache.opendal.behavior.BehaviorTest$AsyncWriteTest
> [ERROR]
> org.apache.opendal.behavior.BehaviorTest$AsyncWriteTest.testReadFull Time
> elapsed: 0.491 s <<< FAILURE!
> java.lang.AssertionError:
>
> to be:
>
> [ERROR] Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed:
> 0.535 s <<< FAILURE! - in
> org.apache.opendal.behavior.BehaviorTest$AsyncWriteTest
> [ERROR]
> org.apache.opendal.behavior.FsTest>org.apache.opendal.behavior.BehaviorTest$AsyncWriteTest.testReadFull
> Time elapsed: 0.491 s <<< FAILURE!
> java.lang.AssertionError:
>
> Or other approach to specify the actual test class.
>
> Best,
> tison.
>
>
> tison <[email protected]> 于2023年9月23日周六 01:11写道:
>
>> See https://github.com/junit-team/junit5/issues/3475 for details.
>>
>> Perhaps JUnit5ConsoleOutputReporter is related but I failed to located
>> the certain line constructing the test method name.
>>
>> Best,
>> tison.
>>
>