CleanCut / green

Green is a clean, colorful, fast python test runner.
MIT License
785 stars 75 forks source link

--omit-add doesn't exist #231

Closed jrabbit closed 3 years ago

jrabbit commented 3 years ago

docs say it should exist

  -O, --clear-omit      Green tries really hard to set up a good list of patterns of files to omit from coverage reports. If the default
                        list catches files that you DO want to cover you can specify this flag to leave the default list empty to start
                        with. You can then add patterns back in with --omit-add. The default list is something like
                        '*/test*,*/mock*,*(temp dir)*,*(python system packages)*' -- only longer.

bad behavior looks like:

└> green -r --omit-add bottle
usage: green [options] [target [target2 ...]]
green: error: unrecognized arguments: --omit-add
jrabbit commented 3 years ago

So is it not possible to extend the list I have to replace it entirely?

CleanCut commented 3 years ago

Thanks! I fixed the docs. It should have mentioned -o, --omit-patterns. The documentation fix will go out in the next release.

So is it not possible to extend the list I have to replace it entirely?

Sure you can, just use -o, --omit-patterns without passing in -O, --clear-omit

jrabbit commented 3 years ago

I'll have to make sure that works, I was struggling with that and might have tried it but will confirm today hopefully.

CleanCut commented 3 years ago

Fix is included in 3.2.2, just released.