maven 使用错误

    xiaoxiao2021-03-27  29

    使用mvn test

    mvn test -Dtest=测试包名.测试类名时

    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project xxx-xxx: No tests were executed! (Set -DfailIfNoTests=false to ignore this error.) -> [Help 1]

    解决办法:按照提示: mvn test -Dtest=测试包名.测试类名 -DfailIfNoTests=false即可通过测试

    转载请注明原文地址: https://ju.6miu.com/read-664457.html

    最新回复(0)