HiveBrain v1.2.0
Get Started
← Back to all entries
patternphpcypressMinor

Can Cypress with cucumber replace php unit and regression tests in CI/Cd pipeline?

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
cucumbercanwithphpcypressreplacetestsregressionandpipeline

Problem

Or there a language agnostic unit and regresion testing?

My team built an MVP with manual tests only and we got into the inverted icecream antipattern. Now to transform into production we need to fix the problem. The marketplace is fully going into Node and JS frameworks and convincing devs to invest more into php is hard considering the job marketplace. Right now we got into a problem that in order to fix 1 bug 2 more appears because there is no regression. Is there a way to fix the icecream antipattern using a php agnostic unit testing? or do we really need to get into phpunit / codeception?

Solution

Yes Cypress is capable to run in CI.

https://docs.cypress.io/guides/guides/continuous-integration.html#Record-tests

Most of the time it is just running cypress run. In our case we ran the docker cypress.

Context

StackExchange DevOps Q#9095, answer score: 1

Revisions (0)

No revisions yet.