gpt4 book ai didi

cypress - 如何在 CI 中运行 Cypress 组件测试

转载 作者:行者123 更新时间:2023-12-05 05:35:39 24 4
gpt4 key购买 nike

我刚刚开始使用组件测试 (Svelte),它们在 Cypress GUI 中运行没有问题。现在我想把它们放在 CI 中,但是当我使用运行模式时,只有 e2e 测试在运行。

我尝试过的:

yarn cypress run

npx cypress run

最佳答案

您可以在命令行上传递--component 标志来运行组件测试:

yarn cypress run --component

关于cypress - 如何在 CI 中运行 Cypress 组件测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73453019/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com