CleanCut / green

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

Verbosity levels when running green with django #37

Closed naglalakk closed 9 years ago

naglalakk commented 9 years ago

Is green's fine verbosity an option when running green as the default test runner for django? I tried but I got django's default v3 level, where showing you how it's setting up the test database is as verbose as it gets.

CleanCut commented 9 years ago

Yes! If you don't like the default verbosity, set it in a config file. Either ~/.green or set the environment variable GREEN_CONFIG to point at the config file in another location.

For example, if you wanted green to default to verbosity of 3 when run on your account, you could create ~/.green with the contents: verbose = 3

Let me know if you have any problems.

naglalakk commented 9 years ago

It works very well :). Thank you very much and let me just add that this is one stellar test runner you have made :+1:

CleanCut commented 9 years ago

Thanks! Be sure to let your friends know so that they can start using it too! :-)

~ Nathan

On Mon, Dec 15, 2014 at 3:52 AM, Þórður Hermannssson < notifications@github.com> wrote:

It works very well :). Thank you very much and let me just add that this is one stellar test runner you have made [image: :+1:]

— Reply to this email directly or view it on GitHub https://github.com/CleanCut/green/issues/37#issuecomment-66977737.

anomitra commented 7 years ago

@CleanCut Is there a way to set the verbosity directly from the command line when using manage.py ? For example, I often like to do a python manage.py test -v 2. Is there a similar syntax for green, say a python manage.py test --green-verbosity vv?

CleanCut commented 7 years ago

@anomitra When I added the functionality, django had not provided any mechanism to pass arguments to the test runner, no.

You can, however, use a green config file to set your defaults differently.

anomitra commented 7 years ago

a way to set the verbosity directly from the command line when using manage.py

@CleanCut I submitted a pull request implementing this functionality at #153, could you please review?