[ERROR][TaskAgile] ..\target\surefire-reports for the individual test results.

2020. 11. 29. 22:10개발 관련/ERROR

[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.331 s <<< FAILURE! - in com.taskagile.TaskAgileApplicationTests
[ERROR] initializationError(com.taskagile.TaskAgileApplicationTests)  Time elapsed: 0.012 s  <<< ERROR!
java.lang.Exception: The class com.taskagile.TaskAgileApplicationTests is not public.

[ERROR] initializationError(com.taskagile.TaskAgileApplicationTests)  Time elapsed: 0 s  <<< ERROR! 
java.lang.Exception: Test class should have exactly one public constructor

[INFO] 
[INFO] Results:
[INFO]
[ERROR] Errors: 
[ERROR] com.taskagile.TaskAgileApplicationTests.initializationError(com.taskagile.TaskAgileApplicationTests)
[ERROR]   Run 1: TaskAgileApplicationTests.initializationError ?  The class com.taskagile.TaskA...  
[ERROR]   Run 2: TaskAgileApplicationTests.initializationError ?  Test class should have exactl...
[INFO]
[INFO]
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  12.698 s
[INFO] Finished at: 2020-11-15T01:21:39+09:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test (default-test) on project app: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\ttogl\practice\TaskAgile\vuejs.spring-boot.mysql\target\surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

 

ERROR 내용

  1. 버전 호환성 문제

 

 

 


해결 방법

  •   버전 다운그레이드

maven-surefire-plugin을 2.18.1로 내려라! 

 

 

참고 사이트  : stackoverrun.com/ko/q/13054592

 

테스트 수행 중에 Maven 빌드가 java.lang.ClassNotFoundException을 throw합니다

스프링 부트 통합 테스트 프로젝트가 있습니다. JDK 9으로 이동하려고합니다. 치어의 일부 변경 후 나는 구축 할 수있어 (테스트를 생략)와 자바 (9)에 실행 프로젝트하지만 통합 테스트를 수행 할

stackoverrun.com

 


  •   -> 해결 x
// in /~ 

추가한내용

 

 

참고 사이트  :