简体   繁体   English

VueJS,使用 Cypress 将 e2e 测试运行到使用 docker 映像的 Jenkins 管道中

[英]VueJS, run e2e tests using Cypress into a Jenkins pipeline using a docker image

I created a VueJs project with some unit tests (using Jest) and integration tests using Cypress.我创建了一个 VueJs 项目,其中包含一些单元测试(使用 Jest)和使用 Cypress 的集成测试。

I have also a Jenkins pipeline in order to build, test and deploy the application.我还有一个 Jenkins 管道,用于构建、测试和部署应用程序。

I Integrated, as test stage, the unit tests but I would like to integrate also Cypress in order to run the integration tests into a dedicated pipeline step.我在测试阶段集成了单元测试,但我也想集成赛普拉斯,以便将集成测试运行到专用的管道步骤中。

Is is possible to have this without installing any additional Cypress Jenkins plugin?是否可以在不安装任何额外的 Cypress Jenkins 插件的情况下拥有它?

I mean, Is it possible to use a docker image to run the tests using Cypress?我的意思是,是否可以使用 docker 映像来使用 Cypress 运行测试?

Can you point me to some examples?你能给我举几个例子吗?

You should be able to use this with Jenkins Docker capabilities.您应该能够将与 Jenkins Docker 功能一起使用。 Also here is another example you can refer to. 这里还有另一个你可以参考的例子。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM