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() {
    }
  }
}

이런 결과를 기대했지만?
image

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

해결

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

Back to Top ↑

댓글남기기