-
-
Notifications
You must be signed in to change notification settings - Fork 536
tox doesn't write testing log #523
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
Comments
@techtonik I was also wondering why this is not implemented, but then I realized that I never missed it either. Tox runs usually in a CI environment and there the output of tox becomes part of the log, so I guess nobody misses this? Piping the output of the run tox into a file is always an option anyway, so I don't think this is in high demand. |
If |
Second question - how to you run single test with |
People should do exactly what they want :) I can only speak for myself. I use tox a lot locally and on CI and not only for testing, but also for building and releasing documentation and as a form of executable development workflow documentation. When I am developing I usually run pytest directly with a watch on that tests get rerun, if they are fast enough, but I also run tox before I push my changes (if I don't forget - otherwise my CI reminds me :)). I never ran into the problem that I loose output of tox, as I have infinite scrollback in my terminals and if I really need to I just say I agree though that tox could have a switch to make it less talkative, there is also an issue about that: #256 |
I didn't raise that point. The point to run a single test is because |
But I agree with that sentiment and that would also move towards a solution of the general "too much output" problem. About your Windows specific problem: #73 (comment) |
There's no builtin support for that, but you can easily support it yourself by using [testenv]
commands= pytest --lsof -rfsxX {posargs:testing} Here
And
In each test environment. |
Nice hack, except that it is not easy to discover. |
What would constitute "easy to discover" for you? It's in the main part of the documentation after rall ... https://tox.readthedocs.io/en/latest/config.html#substitutions-for-positional-arguments-in-commands |
The whole name is unhuman. I would look for 'command line parameters to tox". |
First hit, when googling for that phrase: http://tox.readthedocs.io/en/latest/example/general.html |
So we're doing o.k. on the docs side for that bit, I guess 🎉 |
I am tired. I don't want to use your ways of doing things. I just want the damn tool to write damn log into damn log directory that already exists for that purpose in each damn environment that it creates. Damn. ) |
so fork it and change it? |
maybe we can add a flag that would write the log also to the disk not just to the console? (as far as running one test that is test runner dependent, so the {posargs} solution is the only general solution) |
Flag would help, but I would vote for a default behaviour, because tox already writes logs in |
I would argue against default behavior, as that would change the behavior users got used too, and for one I would not use it at all, however I see the argument for it. Those files are internal logs, not for users. |
I am fine with it being internal, but default. |
We already do this for parallel builds, is that enough for you @techtonik? |
One of the biggest
tox
drawbacks is that it doesn't write logs with errors that are presented to user. My scroll buffer is not enough to get to the first of failings tests. Example:Grepping all files produced by
tox
, I can not find stringpbs.CommandNotFound: __path__
anywhere.The text was updated successfully, but these errors were encountered: