Allure Report是否可以默认显示未更改的测试名称?
当前行为:它将测试名称按单词分隔,并为测试名称中的每个单词设置大写字母。
我正在使用
TestNG
测试框架。
示例:
import org.testng.annotations.Test;
@Test
public void testExample() {
//do smth
}
将在前端向我展示“测试示例”。
import org.testng.annotations.Test;
import ru.yandex.qatools.allure.annotations.Title;
@Title('testExample')
@Test
public void testExample() {
//do smth
}
将在前端向我显示“testExample”。
我不想在每个测试的 @Title 注释中重复测试名称。 如何避免在每个测试上方都写@Title注解?
您可以在测试用例页面顶部看到一个方法名称:
目前无法改变这种行为 - 但我们将删除标题生成功能。请参阅相关的 Github 问题 - https://github.com/allure-framework/allure-core/issues/408。