Open PatrickSowinski opened 11 months ago
Did you find a solution? I am having the same problem. I have a fixture which launches a Node which then crashes. When the Node crashes the Testcase just hangs indefinitely. The README says that Test can fail if a Node dies unexpectedly, is there an argument that needs to be passed to enable this behaviour?
Bug report
Required Info:
apt-get install ros-humble-launch-pytest
)Steps to reproduce issue
Have any launch-related runtime error in your launch_pytest.fixture. If any test uses this fixture, it will get stuck because the fixture fails and the test never starts. If you run pytest verbosely with
-s
, it will print the error from the fixture and then run indefinitely.Example code that will cause this indefinite running:
Expected behavior
Error from fixture setup leads to test failing.
Actual behavior
Fixture error is printed, when pytest is run with
-s
, but the test keeps running indefinitely, unless terminated from the outside by an interrupt or by using an external tool likepytest-timeout
.