在Kubernetes Pod中运行Cypress E2 E测试-并行执行

i7uaboj4  于 2022-12-11  发布在  Kubernetes
关注(0)|答案(1)|浏览(183)

我有cypress E2E测试目前正在Kubernetes Pod中运行,并使用docker容器设置。我试图并行运行这些测试。以前我一直使用https://github.com/cypress-io/github-action插件来做这件事,需要参数来做,但这次我不确定如何做。

x8diyxa7

x8diyxa71#

There are multiple ways to run your Cypress tests in parallel in K8s Cluster:

  1. As a first step, you can set up multiple stages that run in parallel, and all of these Cypress stages can run in the same pod without issue.
  2. You can use cypress-parallel library to run multiple tests in parallel on the same pods.
  3. If you want to run the Cypress tests in separate pods, you need to create pods for each parallel stage, then run your Cypress script using tags or different scripts.
    you can refer to this blog , i found it very useful : https://medium.com/@iamsanjeevkumar/run-cypress-test-in-parallel-without-cypress-dashboard-1c0c33377628

相关问题