Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将 cypress 报告与内部工具集成,我可以通过使用 after:run 来实现,它通过迭代结果 Json 来发布数据,但我正在寻找可以让我在每次测试后捕获执行结果的东西案例已运行并将其推送到内部工具。类似于在每个钩子之后。
有什么办法可以做到这一点?
- - - 更新 - - - -
能够通过使用 mocha 自定义报告来实现它
这是我正在寻找的解决方案
https://mochajs.org/api/tutorial-custom-reporter.html
我使用 mocha 侦听器触发 API 调用来发布数据。