-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathpytest.ini
More file actions
16 lines (16 loc) · 1.02 KB
/
Copy pathpytest.ini
File metadata and controls
16 lines (16 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[pytest]
# ROS Jazzy ships two pytest plugins, launch_testing and launch_ros, which pytest
# auto-discovers via their entry points whenever the overlay is on PYTHONPATH. Their
# collection hooks still declare pytest 7's `path` argument, renamed to `module_path` in
# pytest 8, so pluggy rejects them at startup and the whole run aborts before collection.
# ros2/launch fixed this on rolling but has not backported it to jazzy.
#
# Blocking them gives up ROS launch tests: a module whose `generate_test_description` is
# marked `@pytest.mark.launch_test` or `@pytest.mark.rostest` would collect as a plain
# module, so its launch description never starts the nodes under test and its `proc_info`
# and `proc_output` fixtures are missing. The `--launch-args` flag goes with them. This
# suite contains no such test.
# If this ever changes, we will need to reevaluate this approach.
addopts = -sv -m "not slow" -p no:launch_testing -p no:launch_ros
markers =
slow: marks stress/scale tests that build large motion statecharts (run with '-m slow')