From c077d8fd7bd94ca984c5de150b8d8cce7a4b4fcf Mon Sep 17 00:00:00 2001 From: Tim Hansen Date: Thu, 14 Apr 2022 11:00:41 -0600 Subject: [PATCH] Clarify how to run Cypress tests locally Signed-off-by: Tim Hansen --- cypress/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/cypress/README.md b/cypress/README.md index 2bb310e300..15338fe371 100644 --- a/cypress/README.md +++ b/cypress/README.md @@ -18,6 +18,17 @@ yarn install yarn cypress run ``` +Note that the tests expect to run against a built application, so you'll want to +run a Docker image and either create an `app-config.cypress.yaml` or pass the +necessary environment variables: + +```sh +yarn tsc +yarn build +yarn workspace example-backend build-image +docker run -p 7007:7007 example-backend +``` + You can open up the `cypress` console by using `yarn cypress open`. You can also run towards any Backstage installation by using the Cypress Environment Variable overrides.