Skip to main content

How to Work with Cypress Tests

This guide walks you through how to run the Cypress test suite provided as part of your coding test setup.

Updated over 5 months ago

Alva's coding tests often come with a preconfigured test suite to validate the functional correctness of provided solutions.

One common setup is based on a testing library called Cypress.

Running the Tests Using the Terminal

If you're using the provided GitHub Codespaces environment, proceed to step 3 directly.

  1. Please ensure Node is installed in your environment and your app is running.

  2. For Linux only: please fulfill the following requirements for your respective OS distribution that installs the necessary binary libraries.

  3. Run the following commands in your terminal:

    npm i && npm run test

Running the Tests Using the GitHub Actions Workflow

The test suite executes every time you push your git commits to your coding test's GitHub repository.

To see the results, please follow the steps in the screenshots below.

Did this answer your question?