我们如何更改生成Allure xml reports
的文件目录?
我想在运行时更改它。
我正在使用java 8和TestNG。
答案 0 :(得分:2)
查看以下包含所有Allure属性的类:https://github.com/allure-framework/allure-core/blob/master/allure-model/src/main/java/ru/yandex/qatools/allure/config/AllureConfig.java
所以答案是:
System.setProperty("allure.results.directory", "path/to/directory");