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

Debug mode much needed as a developer to debug #78

Open
omkarns opened this issue Sep 3, 2020 · 2 comments
Open

Debug mode much needed as a developer to debug #78

omkarns opened this issue Sep 3, 2020 · 2 comments

Comments

@omkarns
Copy link

omkarns commented Sep 3, 2020

There are test cases which gets failed in parallel, it gets difiicult to debug if output is suppresed on the console. We need that functionality to use it. I agree it adds bvalue as it enabled me to run tests in parallel. But giving output on screen will more or less help in debugging even if it is printing on screen at different timings due to speed of execution. It will be a pie on the cake.

@pbos
Copy link
Collaborator

pbos commented Sep 8, 2020

Not sure if I follow, do you need the output in realtime? If you don't mind doing something locally you might be able to replace this line:

task = subprocess.Popen(self.test_command, stdout=log, stderr=log)

I don't know if there's something non-hacky and minimal for this. If I recall correctly this used to use a pipe, but that led to various flakiness when using it in the wild, using whatever python version we were using at the time.

@pbos
Copy link
Collaborator

pbos commented Sep 8, 2020

.. which if I read the python docs right are replacing stdout=log with =subprocess.STDOUT. I haven't thought further about what this implies.

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

2 participants