Skip to content

Instantly share code, notes, and snippets.

@jrussett
Created April 29, 2019 22:04
Show Gist options
  • Save jrussett/dedd5279fc1d46fcc6ed8b72e6acef88 to your computer and use it in GitHub Desktop.
Save jrussett/dedd5279fc1d46fcc6ed8b72e6acef88 to your computer and use it in GitHub Desktop.
How to figure out the SKIP regex in ginkgo

Firstly, modify the ginkgo execution params to include:

-nodes=1 \ # no parallel
-seed=9 \  # always use same seed
-dryRun \  # really?
-v \       # verbose
--noColor \# remove ugly terminal color output 
--succinct # idk what this does but it makes it smaller

Then create a source and a comparison output:

SKIP_REGEXP=''; ./path/to/ginkgo/script > /tmp/canon.txt
SKIP_REGEXP='my regex'; ./path/to/ginkgo/script > /tmp/modified.txt

See the difference:

vimdiff /tmp/canon.txt /tmp/modified.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment