使用 testcafe grep 模式将部分解决我们使用标签的问题,但它仍会在规范报告中显示这些标签......!!!
有没有办法在测试/夹具名称中包含标签并使用 grep 模式但跳过这些标签以显示在执行报告中?
import { Selector } from 'testcafe';
fixture `Getting Started`
.page `http://devexpress.github.io/testcafe/example`;
test('My first test --tags {smoke, regression}', async t => {
// Test code
});
test('My Second test --tags {smoke}', async t => {
// Test code
});
test('My first test --tags {regression}', async t => {
// Test code
});
testcafe chrome test.js -F "smoke"
上面的代码片段会为我触发仅烟雾测试,但报告将显示测试名称以及这些标签
是否有替代方法来处理标签或不在测试执行报告中显示标签的解决方案?