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

A way to conditionally record tests

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

At the moment there's no way to conditionally record the tests.

The only way to trigger recording is by hardcoding the record: true in the Orb declaration.

In our case, we want to record tests on staging branch only.

Is there any way to achieve this?

I noticed multiple people have the same issue eg: https://discuss.circleci.com/t/cast-an-environment-variable-to-a-boolean/37867/2https://github.com/cypress-io/cypress-example-circleci-orb/issues/2

a-tokyo avatar Jan 25 '22 11:01 a-tokyo