From d7e678d370c04b137aa5b31ba98889dd6f186d55 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Sun, 26 Sep 2021 15:50:14 +0200 Subject: [PATCH] chore: some small changes in the cypress README.md --- cypress/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cypress/README.md b/cypress/README.md index d7ea12f78..6dd21922e 100644 --- a/cypress/README.md +++ b/cypress/README.md @@ -9,8 +9,8 @@ ## Fixtures -We're using the [test endpoint](https://vikunja.io/docs/config-options/#testingtoken) of the vikunja api to -seed the database with test data before running the tests. +We're using the [test endpoint](https://vikunja.io/docs/config-options/#testingtoken) of the vikunja api to +seed the database with test data before running the tests. This ensures better reproducability of tests. ## Running The Tests Locally @@ -22,20 +22,20 @@ It uses the same configuration as the CI. To use it, run -``` +```shell docker-compose up -d ``` Then, once all containers are started, run -``` +```shell docker-compose run cypress bash ``` to get a shell inside the cypress container. In that shell you can then execute the tests with -``` +```shell yarn test:frontend ``` @@ -43,6 +43,6 @@ yarn test:frontend To open the Cypress Dashboard and run tests from there, run -``` +```shell yarn cypress:open ``` -- 2.40.1