Test/Junit

[Error] Internal Error occurred. org.junit.platform.commons.JUnitException: TestEngine with ID 'junit-jupiter' failed to discover tests

잔망루피 2022. 9. 12. 22:50
반응형

Junit5는 JUnit Platform, JUnit Jupiter, JUnit Vintage 모듈이 있어야한다.

testImplementation 'org.junit.jupiter:junit-jupiter:5.9.0'
testImplementation 'org.junit.platform:junit-platform-launcher:1.9.0'
testImplementation 'org.junit.vintage:junit-vintage-engine:5.9.0'

 

 

 

참고 👇

https://junit.org/junit5/docs/current/user-guide/

 

JUnit 5 User Guide

Although the JUnit Jupiter programming model and extension model do not support JUnit 4 features such as Rules and Runners natively, it is not expected that source code maintainers will need to update all of their existing tests, test extensions, and custo

junit.org

 

반응형

'Test > Junit' 카테고리의 다른 글

[MockMvc] 테스트 시 redirect 여부 확인  (0) 2022.09.17
[MockMvc] Pageable  (0) 2022.09.17
Cannot resolve symbol 'WithMockUser'  (0) 2022.08.30
JUnit5  (0) 2022.01.27