bug
When working inside this repository and trying to record a run, the record key is not read from the environment variable CYPRESS_RECORD_KEY.
steps to reproduce
- clone a sample project for example
git clone https://github.com/cypress-io/cypress-test-tiny.git /tmp/cypress-test-tiny
- try running tests in the
/tmp/test from the root of this repository AND record it (because we are working against local API without running it, just use fake "foo" and "bar").
CYPRESS_PROJECT_ID=foo npm start -- --run-project /tmp/cypress-test-tiny --record --key bar
Everything is working and the test is running.
- try passing record key via environment variable
CYPRESS_RECORD_KEY (see https://docs.cypress.io/dashboard/overview/projects-dashboard.html#Record-Test-Runs)
CYPRESS_PROJECT_ID=foo CYPRESS_RECORD_KEY=bar DEBUG=cypress:* npm start -- --run-project /tmp/cypress-test-tiny --record
and you get the following error message
You passed the --record flag but did not provide us your Record Key.
You can pass us your Record Key like this:
cypress run --record --key <record_key>
You can also set the key as an environment variable with the name CYPRESS_RECORD_KEY.
https://on.cypress.io/how-do-i-record-runs
Hmm, weird that this fails in local development mode, but works just fine in compiled binary.
bug
When working inside this repository and trying to record a run, the record key is not read from the environment variable
CYPRESS_RECORD_KEY.steps to reproduce
git clone https://github.com/cypress-io/cypress-test-tiny.git /tmp/cypress-test-tiny/tmp/testfrom the root of this repository AND record it (because we are working against local API without running it, just use fake "foo" and "bar").Everything is working and the test is running.
CYPRESS_RECORD_KEY(see https://docs.cypress.io/dashboard/overview/projects-dashboard.html#Record-Test-Runs)and you get the following error message
Hmm, weird that this fails in local development mode, but works just fine in compiled binary.