Search code examples
testingautomationcypressgithub-actionsparallel-testing

Is there a simple way to execute cypress tests parallelly without using dashboard?


I'm working on a cypress test execution on Github actions and I need to know whether there is a way to execute the tests in parallel mode without using the cypress dashboard (Open source solution)

Tried the solution with 'Sorry Cypress' (https://docs.sorry-cypress.dev/) but I was not able to execute the tests in CI/CD (Github Actions).

Can someone point me in the right direction?


Solution

    • Easiest solution was to execute tests in a few parallel nodes using the containers in CI/CD. This can simply be achieved on GitHub Actions using 'matrix:' property in the GitHub workflow.
    • In each node, we can execute separate test files and archive the results in each node separately. And at the end (after tests in all nodes are completed) we can generate a test report based on the results of each node (using archived files) and publish the report.

    This was the high-level idea on how I managed to do the parallel execution without using the cypress dashboard. I know the solution is not perfect but, it's a good workaround and it managed to cut-down my test execution time by more than 60%