gpt4 book ai didi

cucumber-java - 如何阻止 Cucumber runner 在控制台中打印详细信息

转载 作者:行者123 更新时间:2023-12-04 17:43:11 34 4
gpt4 key购买 nike

如何阻止 Cucumber runner 在控制台中打印详细信息?

String [] argv = new String[]{ 
"-g"
,"components"
,"./Features"
//,"-t","@functional,@regression"
,"-n","Validate_login_search_using_sku_id"
};
ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();

有一种叫做“单色”的东西,但不确定如何在 argv 中添加它

最佳答案

您可以使用 --plugin null_summary 来避免打印摘要,使用 --monochrome 来避免打印 ANSI 颜色转义序列。

来自:

https://github.com/cucumber/cucumber-jvm/blob/master/core/src/main/resources/cucumber/api/cli/USAGE.txt

 -p, --[add-]plugin PLUGIN[:PATH_OR_URL]
Register a plugin.
Built-in formatter PLUGIN types: junit,
html, pretty, progress, json, usage, rerun,
testng. Built-in summary PLUGIN types:
default_summary, null_summary. PLUGIN can
also be a fully qualified class name, allowing
registration of 3rd party plugins.
--add-plugin does not clobber plugins of that
type defined from a different source.

关于cucumber-java - 如何阻止 Cucumber runner 在控制台中打印详细信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53525259/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com