idea啟動或install時報錯:There are test failures,如何跳過測試?


用idea  install項目時失敗,報這樣的錯:

 1 [INFO] BUILD FAILURE
 2 [INFO] ------------------------------------------------------------------------
 3 [INFO] Total time: 26.840 s
 4 [INFO] Finished at: 2019-08-08T14:45:20+08:00
 5 [INFO] Final Memory: 33M/357M
 6 [INFO] ------------------------------------------------------------------------
 7 [WARNING] The requested profile "nexus" could not be activated because it does not exist.
 8 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project zjwechat: There are test failures.
 9 [ERROR] 
10 [ERROR] Please refer to F:\MyProject\LuMeng\ETC\zj_v2.1\zjwechat\target\surefire-reports for the individual test results.
11 [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
12 [ERROR] -> [Help 1]

解決辦法:

  跳過測試,即把下圖中箭頭指向的圖標變為選中狀態就行了,

  鼠標移到這個圖標上 會顯示Toggle 'Skip tests' mode,意思就是跳過測試。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM