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

Parallel test runner swallows standard output #182

Open
pzahemszky opened this issue Oct 18, 2019 · 1 comment · May be fixed by #183
Open

Parallel test runner swallows standard output #182

pzahemszky opened this issue Oct 18, 2019 · 1 comment · May be fixed by #183

Comments

@pzahemszky
Copy link

The parallel test runner seems to swallow the standard output. See the example below.

test_haas_parallel.py:

import unittest


class TestHaas(unittest.TestCase):

    def test_haas_one(self):
        print('one')

    def test_haas_two(self):
        print('two')

Running haas with the default test runner displays the one and two messages as expected:

$ haas test_haas_parallel.py
one
.two
.
----------------------------------------------------------------------
Ran 2 tests in 0.000s

OK

Running haas with the --runner parallel option makes them disappear.

$ haas --runner parallel test_haas_parallel.py
..
----------------------------------------------------------------------
Ran 2 tests in 0.121s

OK

Python 3.6.5
haas 0.8.0
stevedore 1.29.0

pzahemszky added a commit to pzahemszky/haas that referenced this issue Nov 3, 2019
@itziakos
Copy link
Contributor

After some investigation on the behaviour of the parallel runner, I found the following:

So the bug is that the stdout/stderr content is ignored instead of being collected by the parent process. I suspect that the solution to this bug is going to be a little more involved and probably require some small redesign

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

Successfully merging a pull request may close this issue.

2 participants