Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verbosity levels when running green with django #37

Closed
naglalakk opened this issue Dec 15, 2014 · 6 comments
Closed

Verbosity levels when running green with django #37

naglalakk opened this issue Dec 15, 2014 · 6 comments

Comments

@naglalakk
Copy link

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
Copy link
Owner

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
Copy link
Author

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

@CleanCut
Copy link
Owner

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: 👍]


Reply to this email directly or view it on GitHub
#37 (comment).

@anomitra
Copy link
Contributor

@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
Copy link
Owner

@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
Copy link
Contributor

anomitra commented Mar 1, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants