Add pytest.ini so local tests don't display warning#224
Conversation
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
kyrofa
left a comment
There was a problem hiding this comment.
Thanks @clalancette, looks good to me.
Codecov Report
@@ Coverage Diff @@
## master #224 +/- ##
=======================================
Coverage 78.02% 78.02%
=======================================
Files 16 16
Lines 578 578
Branches 51 51
=======================================
Hits 451 451
Misses 107 107
Partials 20 20
Continue to review full report at Codecov.
|
|
Thanks @clalancette. 2 things seem surprising though:
|
Yeah, you don't see it in nightly CI because of this piece of code: https://github.com/ros2/ci/blob/8c758cf359ec5328f652f5f068654aa6101b44a7/ros2_batch_job/__main__.py#L384 . However, we'd like to remove that code (see ros2/ci#471), and if you run the tests locally, you always get a warning. Thus it seems like the right way to fix both problems is to put these pytest.ini files where they are needed.
The easiest way is to run the tests locally with |
I'm referring to the nightly CI on this repository that don't use
Yeah that's why I'm asking, I just tried that and couldn't reproduce: |
|
@mikaelarguedas Since the referenced actions are a custom CI solution you probably know best where and how they diverge from the install instructions. E.g. if they install |
|
@dirk-thomas thanks, that must be why 👍, as of ros2/ros2#722 the docker images rely on colcon to provide pytest instead of installing potentially incompatible versions. So currently the recommended way (from the install instructions) is to install first pytest and some pytest plugins from apt and then from pip, is that correct ? (if so we can update the docker images accordingly) |
mikaelarguedas
left a comment
There was a problem hiding this comment.
+1, needed if installing pytest from pip
|
Checks are green, CI in ros2/ros2#951 was green, approved. Merging, thanks! |
Signed-off-by: Chris Lalancette clalancette@openrobotics.org
See ros2/ros2#951 for more details and CI.