Skip to content

Commit

Permalink
Information about setup.py stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
CleanCut committed Jul 7, 2017
1 parent 7e7d9f1 commit 81b8b86
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cli-options.txt
Expand Up @@ -122,6 +122,23 @@ ENABLING SHELL COMPLETION
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

Configuration settings are resolved in this order, with settings found later
Expand Down

0 comments on commit 81b8b86

Please sign in to comment.