首页 > 解决方案 > 如何将 AVA 和 Cypress 测试链接在一起以进行完整的端到端测试?

问题描述

我有一个 AVA 测试,它进行了一堆后端设置,并在测试结束时设置了一个值,我需要为我的前端测试设置一个值,这些值是用 Cypress 编写的。

1. How can I share that variable between the two tests (they are in separate files) 2. How can I invoke them sequentially, so that I only have to run one command (can I invoke the Cypress tests at the end of my AVA test? Maybe a powershell script?)

谢谢您的帮助!

标签: javascripte2e-testingcypressend-to-endava

解决方案


推荐阅读