JUnit5 DisplayName 이 동작하지 않을 때
@DisplayName of junit5 in intellij do not working
@DisplayName 이 동작하지 않아요
JUnit5 를 이용하여 아래와 같은 테스트를 작성하고
@DisplayName("example")
class JunitExample {
@DisplayName("when coding enjoy")
@Nested
class Context_Sample {
@Test
@DisplayName("i am happy")
void test1() {
}
}
}
이런 결과를 기대했지만?

이런 화면이 나온다면..😭

해결
Run tests using 옵션을 변경 gradle -> intellij

댓글남기기