circleci-orb icon indicating copy to clipboard operation
circleci-orb copied to clipboard

✨ Allow `record` to be set via an env variable

Open a-tokyo opened this issue 4 years ago • 0 comments

Right now to record cypress tests in the dashboard we have to hardcode record: true in the circleCI config file. This prevents developers from conditionally recording the tests, ie: if a developer only wants to record tests on a certain branch.

Example use case: We'd like to only record production tests, not feature branches.

Proposed solution:

  • Setting the env variable CI_CYPRESS_RECORD to true automatically sets the record parameter to true.
  • We can also pass --record $CI_CYPRESS_RECORD to the cypress main command

More than happy to work on this (:

a-tokyo avatar Jul 15 '21 05:07 a-tokyo