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.
Please ensure Node is installed in your environment and your app is running.
For Linux only: please fulfill the following requirements for your respective OS distribution that installs the necessary binary libraries.
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.