JS testing with Cypress.io

Since the marionetting etc testing of the replpad has broken, I decided to see if I could use Cypress to the testing instead.

First off I managed to persuade a nice community user n their discord channel to create a skeleton repository with a working GitHub action that all it does is do a simple GET. See her skeleton here.

I cloned it into a Humanistic repo here

The test scripts go into the e2e/ directory and for instance I have my test of the chess app here

Of course you also have to activate GitHub actions when you clone a repo with a GitHub action.

You can also hook up your GitHub actions to the cypress free dashboard. To do this, you need to sign up for a 3 user free account.

You also need to enable the GitHub Cypress App once you get access to the Cypress Dashboard. On the left in the concerterina menu, "Integrations" and select the service you wish to integrate with. GitHub, GitLab and Bitbucket are free. Jira etc are paid options.

You'll get a key which allows you to integrate with your dashboard, and that needs to run from NPX once you have Cypress installed in the workflow. See these lines

And now each time you do a push, you can view the results in the Cypress dashboard, and watch videos even of the tests!

2 Likes