티스토리 뷰

반응형
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':web:test'.
> No tests found for given includes: [SwgDatabaseTest.test](filter.includeTestsMatching)
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':web:test'.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:166)
Caused by: org.gradle.api.tasks.testing.TestExecutionException: No tests found for given includes: [SwgDatabaseTest.test](filter.includeTestsMatching)
    at org.gradle.api.internal.tasks.testing.NoMatchingTestsReporter.afterSuite(NoMatchingTestsReporter.java:37)
    ... 34 more
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
6 actionable tasks: 2 executed, 4 up-to-date
  • junit5를 사용할 때 테스트를 gradle로 실행했을 경우 나왔다.

junit5에서 gradle 테스트를 사용하려면 build.gradle에 아래 설정을 추가해줘야한다.

test {
    useJUnitPlatform()
}
  • intellij를 사용한다면 아래 설정을 변경해주면 사용 가능하다.

    • Settings > Build,Execution,Deployment > Build Tools > Gradle > Runner > "Run tests using:" -> Intellij IDEA

반응형
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
글 보관함