Closed cottsay closed 2 years ago
The instability is on the nightlies too: https://ci.ros2.org/view/nightly/job/nightly_linux-rhel_release/1323/testReport/
@mergifyio backport humble
@mergifyio backport galactic
backport humble
backport galactic
As it stands, pytest sees launch tests as a single testing node with no markings. It would be useful if normal pytest markings could be used on the generate_test_description function (where @pytest.mark.launch_test and @launch_testing.parametrize are currently specified).
Notably, this will always mark the test nodes with 'launch_test', and will allow the use of very useful marking like 'xfail', 'skip', and 'skipif'.
To duplicate the markers from the entrypoint, this change makes use of the MarkerGenerator singleton (aka
pytest.mark
) to create a newMarkerDecorator
with the same name, then copies the original marker's arguments, which are critical for markers likeskipif
.Complements ros2/launch_ros#330