我尝试了多种设置resultPath的方法,都失败了。它仍然引用默认路径“./allure/allure-result”我该怎么办? 这是我使用的代码
const testcafe = await createTestCafe(evn.hostname, evn.port1, evn.port2, sslOptions);
const runner = testcafe.createRunner(); await runner.src(testfile) .browsers('chrome --ignore-certificate-errors --use-fake-ui-for-media-stream')
.reporter(['allure'])
await runner.run({
reporterOptions:{
allure:{
outputDir:resultPath
}
}
})
await testcafe.close();
另一个代码
但是也没有生效
const testcafe = await createTestCafe(evn.hostname, evn.port1, evn.port2, sslOptions);
const runner = testcafe.createRunner();
await runner.src(testfile)
.browsers('chrome --ignore-certificate-errors --use-fake-ui-for-media-stream')
.reporter('allure',{outputDir:resultPath})
await runner.run()
await testcafe.close();