“跳过肯定火的执行,因为它已经为此配置运行"? [英] "Skipping execution of surefire because it has already been run for this configuration"?

查看:29
本文介绍了“跳过肯定火的执行,因为它已经为此配置运行"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请原谅新手的问题 - 我的概念模型仍然很不完整......

Please excuse the newb question - my conceptual models are still quite incomplete...

我正在尝试使用 maven 和 surefire 从命令行重新执行 TestNG 测试.我的命令行如下所示:

I'm trying to re-execute TestNG tests from a command line using maven and surefire. My command line looks like:

D:workspacesworkspace01aptest>mvn clean install surefire:test -Dtests=myTestNGSuite test

显然我没有得到它,因为我最终得到的输出包括:

Clearly I'm not getting it because the output I end up with includes:

[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ aptest ---
[INFO] Skipping execution of surefire because it has already been run for this configuration

如何清除配置以便从命令行重新运行我的 TestNG 套件?有没有更好的方法从命令行运行 TestNG 套件?

How do I clear out the configuration so I can re-run my TestNG suite from the command line? Is there a better way to run TestNG suites from the command line?

TIA,-->亚伦

推荐答案

surefire插件的测试目标是在测试阶段自动运行,所以第一次运行就行了

The test goal of the surefire plugin is automatically run in the test phase so the first time just run

 mvn clean install -Dtest=MyTestNGTest

然后如果你想重新运行做一个

and then if you want to re run do a

mvn install -Dtest=MyTestNGTest

请注意,我没有调用 clean 目标,因此只有您对测试用例或代码的更改会被重新编译,并且我不会调用 surefire 插件的测试目标.

Note that I am not calling the clean goal so that only your changes of test cases or code are recompiled and that I am NOT invoking the test goal of the surefire plugin.

这篇关于“跳过肯定火的执行,因为它已经为此配置运行"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆