我在测试咖啡馆配置中启用了隔离模式。
"ci-e2e": {
"browsers": [
"chrome:headless"
],
"debugOnFail": false,
"src": "./tests/e2e/*.test.ts",
"concurrency": 1,
"quarantineMode": true,
"reporters": [
{
"name": "nunit3",
"output": "results/e2e/testResults.xml"
},
{
"name": "spec"
}
],
"screenshots": {
"takeOnFails": true,
"path": "results/ui/screenshots",
"pathPattern": "${DATE}_${TIME}/${FIXTURE}/${TEST}/Screenshot-${QUARANTINE_ATTEMPT}.png"
},
"video": {
"path": "results/ui/video",
"failedOnly": true,
"pathPattern": "${DATE}_${TIME}/${FIXTURE}/${TEST}/Video-${QUARANTINE_ATTEMPT}"
}
},现在,当一些尝试失败时,我在日志(nunit xml日志文件)中输入了有关失败运行的信息,并且只有一个堆栈跟踪。我有每一次失败运行的截图。
<failure>
<message>
<![CDATA[ ❌ AssertionError: ... Run 1: Failed Run 2: Failed Run 3: Failed ]]>
</message>
<stack-trace>
here we have stack-trace for only one failed run
</stack-trace>
</failure>对于每个失败的测试,我希望每个失败的日志条目都有堆栈跟踪。是否有可能以这种方式配置testcafe?如果不是我该做什么?
发布于 2022-06-27 08:32:27
配置文件中有一个错误。记者选择的名字应该是reporter,但它是reporterS。这意味着Test咖啡馆根本不使用这些记者,也许现在你看到的只是一个过时的文件和结果。
https://stackoverflow.com/questions/72722512
复制相似问题