circleci-orb
circleci-orb copied to clipboard
✨ Allow `record` to be set via an env variable
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_RECORDto true automatically sets therecordparameter to true. - We can also pass
--record $CI_CYPRESS_RECORDto the cypress main command
More than happy to work on this (: