如何将控制台的报告结果保存到文件(TestCafe)?
How to save report results from console to a file (TestCafe)?
我正在使用 Test-cafe 进行端到端测试。我想知道是否有办法将控制台的报告结果保存到文件中。因此,每次测试完成时,结果都会自动保存在一个单独的文件中,我可以用它来查看问题等。
https://devexpress.github.io/testcafe/
ps。我正在使用 Ubuntu.
谢谢。
您可以使用 reporter option (-r
, --reporter
) 输出到文件。
例如,testcafe chrome example.js -r spec:output.txt
生成以下文件:
您可以找到 list of built in reporters here,以及一些您必须单独安装的自定义报告程序的链接。
我正在使用 Test-cafe 进行端到端测试。我想知道是否有办法将控制台的报告结果保存到文件中。因此,每次测试完成时,结果都会自动保存在一个单独的文件中,我可以用它来查看问题等。
https://devexpress.github.io/testcafe/
ps。我正在使用 Ubuntu.
谢谢。
您可以使用 reporter option (-r
, --reporter
) 输出到文件。
例如,testcafe chrome example.js -r spec:output.txt
生成以下文件:
您可以找到 list of built in reporters here,以及一些您必须单独安装的自定义报告程序的链接。