【问题标题】:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test testng meaven未能执行目标 org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test testng meaven
【发布时间】:2020-12-28 10:32:44
【问题描述】:

请帮助解决以下错误:

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test

【问题讨论】:

  • 你能说得更具体点吗?
  • 解释您所做的并将所有错误消息添加为文本(不是图像)。

标签: maven maven-surefire-plugin


【解决方案1】:

从您的属性定义中删除引号:

mvn clean install -Dtest=com.qa.dontknow.test -Denv=qa

surefire:test <test>:

[...] 因此您只需键入 -Dtest=MyTest 即可运行名为“foo/MyTest.java”的单个测试。 [...]

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-01-23
    • 1970-01-01
    • 2012-10-21
    • 2015-09-22
    • 2020-02-24
    • 2020-03-30
    • 1970-01-01
    • 2021-06-28
    相关资源
    最近更新 更多