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

Port identification tests from colcon_core #157

Merged
merged 2 commits into from
May 31, 2024

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented May 29, 2024

This doesn't exhaustively test colcon_ros.package_identification.ros, but it does give us some basic coverage.

This doesn't exhaustively test colcon_ros.package_identification.ros,
but it does give us some basic coverage.
@cottsay cottsay added the enhancement New feature or request label May 29, 2024
@cottsay cottsay requested a review from nuclearsandwich May 29, 2024 18:27
@cottsay cottsay self-assigned this May 29, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 15.53%. Comparing base (c5452db) to head (820bfed).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #157      +/-   ##
==========================================
+ Coverage    6.92%   15.53%   +8.61%     
==========================================
  Files          20       20              
  Lines         650      650              
  Branches      139      139              
==========================================
+ Hits           45      101      +56     
+ Misses        605      539      -66     
- Partials        0       10      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@nuclearsandwich nuclearsandwich left a comment

Choose a reason for hiding this comment

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

I know this is adapted directly from colcon core. A drive-by review comment is that these looong test functions are something of an anti-pattern because the test stops at the first assert which means it may take a few iterations to pass again after failing. But having said my piece, imperfect tests are infinitely preferred to no tests.

@cottsay cottsay added this to the 0.4.2 milestone May 31, 2024
@cottsay cottsay merged commit f234777 into master May 31, 2024
17 checks passed
@delete-merged-branch delete-merged-branch bot deleted the cottsay/identification-test branch May 31, 2024 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

3 participants