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

Add a flag for running debug

Open paulfalgout opened this issue 5 years ago • 2 comments

Unless I'm mistaken the only way to implement DEBUG=cypress* for debugging cypress issues on ci is to modify the command at which point, I have to manually also add all of the various parallel, group, etc flags?

It'd be nice if this was debug: true

paulfalgout avatar Dec 03 '19 16:12 paulfalgout

Right now the way to pass additional environment variables is to make a custom executor https://github.com/cypress-io/circleci-orb/blob/master/docs/examples.md#env-vars which is a lot of work, I agree. A better way could probably be passing env var like this https://circleci.com/docs/2.0/reusing-config/#environment-variable-name

version: 2.1
jobs:
   # dummy job name
   cypress-run:
     parameters:
       debug:
         type: env_var_name
         default: DEBUG
     docker:
       - image: ubuntu:latest
     steps:
       - run: |
           DEBUG=${<< parameters.debug >>} \\
           npx cypress run ...
workflows:
  workflow:
    jobs:
      - cypress-run

bahmutov avatar Dec 03 '19 16:12 bahmutov

@bahmutov Can this be closed as resolved? Or is there work planned to change this?

jennifer-shehane avatar Dec 16 '19 05:12 jennifer-shehane

Closing this as we have support for this feature via https://circleci.com/developer/orbs/orb/cypress-io/cypress#usage-debug

jordanpowell88 avatar Dec 21 '22 21:12 jordanpowell88