stryker-mutator / stryker-js

Mutation testing for JavaScript and friends
https://stryker-mutator.io
Apache License 2.0
2.61k stars 250 forks source link

Feature request for Cypress test runner plugin #3856

Open muratkeremozcan opened 2 years ago

muratkeremozcan commented 2 years ago

Is your feature request related to a problem? Please describe. It would be beautiful to have a plugin for Cypress runner, as it supports component testing in 4 frameworks.

Describe the solution you'd like Just as we can use Jest + RTL for component testing, we can use Cypress for component testing. It would be desirable to do mutation analysis with it as well.

Additional context Add any other context or screenshots about the feature request here. Side by side 40+ RTL and Cy CT tests: https://github.com/muratkeremozcan/tour-of-heroes-react-cypress-ts yarn test vs yarn cy:run-ct-fast

jsifalda commented 1 year ago

👍

steoj commented 1 year ago

👍🏻

steoj commented 1 year ago

Anyone working on something that will make the cypress tests run a little more efficiently? We have ballpark 450 Cypress component tests running and each run of all of these takes approximately 15 minutes. Stryker seems to be running all tests for all mutations for all files when set up with command runner: yarn cypress run --component --headless -C cypress.component.config.ts and this causes the stryker run to timeout (> 6h) in a github workflow - even using incremental mode. Also, it seems all mutations that was not killed, are timing out - even if they should have survived: Screenshot 2023-10-23 at 06 53 20 In the above case, the mutation is always returning false. This should have been a surviving mutation - not a timed out one. Will a dedicated runner target tests to mutated files?

kght6123-work commented 1 year ago

👍

rennergimenes commented 4 months ago

👍