Skip to content

Commit

Permalink
Advertise setup.py runner in green.config
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Larralde committed Jul 7, 2017
1 parent bce8798 commit 8c91d00
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions green/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,24 @@ def parseArguments(argv=None): # pragma: no cover
Warning! Generating a completion list actually discovers and loads tests
-- this can be very slow if you run it in huge directories!
SETUP.PY RUNNER
To run green as a setup.py command, simply add green to the 'setup_requires'
section in the setup.py file, and specify a target as the 'test_suite'
parameter if you do not want green to load all the tests:
setup(
setup_requires = ['green'],
install_requires = 'myproject.tests'
)
Then simply run green as any other setup.py command (it accepts the same
parameters as the 'green' executable):
python setup.py green
python setup.py green -r # to run with coverage, etc.
CONFIG FILES
Expand Down

0 comments on commit 8c91d00

Please sign in to comment.