Skip to content
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

Merged
merged 1 commit into from
Nov 14, 2017

Conversation

dirk-thomas
Copy link
Member

Connect to ament/ament_cmake#115.

@dirk-thomas dirk-thomas added the in review Waiting for review (Kanban column) label Nov 14, 2017
@dirk-thomas dirk-thomas self-assigned this Nov 14, 2017
Copy link
Member

@mikaelarguedas mikaelarguedas left a 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}
Copy link
Member

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)

Copy link
Member Author

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.

Copy link
Member

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

Copy link
Member Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks 👍

@dirk-thomas dirk-thomas merged commit 75c150b into master Nov 14, 2017
@dirk-thomas dirk-thomas deleted the ament_cmake_pytest branch November 14, 2017 01:35
@dirk-thomas dirk-thomas removed the in review Waiting for review (Kanban column) label Nov 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants