-
Notifications
You must be signed in to change notification settings - Fork 334
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
use ament_cmake_pytest instead of ament_cmake_nose #188
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, one global comment regarding finding non linter related test_depends with ament_lint_auto_find_test_dependencies
that I think should be adressed (but can be done on another set of PRs)
@@ -186,7 +186,7 @@ if(BUILD_TESTING) | |||
file(GENERATE | |||
OUTPUT test_composition${target_suffix}_$<CONFIG>.py | |||
INPUT test_composition${target_suffix}.py.genexp) | |||
ament_add_nose_test(test_composition${target_suffix} | |||
ament_add_pytest_test(test_composition${target_suffix} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know it's not related to this change but it seems weird that this uses macros from package that were not find_package'd. same for the other PRs. (ament_lint_auto_find_test_dependencies
is the one finding them but I think it's confusing that the ament_lint_XX
macro finds non linter test dependencies for you)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well the function is called find_test_dependencies
(with the prefix of the package it is contained in). So I think it is very reasonable to expect that it finds all test dependencies.
Since the package was relying on exactly the same behavior before with nose
I would suggest to address it in a separate PR if you think it should be done explicitly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remember us having the same conversation (#181 (comment)) when explicit call to ament_flake8 was added a few lines below. So I assumed you wanted to do the same here as it sees to be a very similar scenario
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I added the explicit calls to make it REQUIRED
.
The same on all the other PRs with this comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks 👍
a2ecfaf
to
480cf16
Compare
Connect to ament/ament_cmake#115.