Skip to content

Conversation

@cottsay
Copy link
Member

@cottsay cottsay commented Oct 21, 2025

The existing tests exercise much of the code for implementing colcon's shell subsystem, but it doesn't validate the results. If the platform supports the shell, we should check that the code for appending and prepending paths to lists function as intended.

In each test module, the first block of changes is just a refactor so that we reference the hooks generated by the calls to create_hook_*. Previously, the test only validated that the hook could be generated, and didn't attempt to actually use it.

The second block adds a handful of assertions about the behavior of the hooks when executed.

@cottsay cottsay self-assigned this Oct 21, 2025
@cottsay cottsay added the enhancement New feature or request label Oct 21, 2025
@codecov
Copy link

codecov bot commented Oct 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.98%. Comparing base (3310754) to head (d4b31a7).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #713   +/-   ##
=======================================
  Coverage   86.98%   86.98%           
=======================================
  Files          69       69           
  Lines        4088     4088           
  Branches      706      706           
=======================================
  Hits         3556     3556           
  Misses        421      421           
  Partials      111      111           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

The existing tests exercise much of the code for implementing colcon's
shell subsystem, but it doesn't validate the results. If the platform
supports the shell, we should check that the code for appending and
prepending paths to lists function as intended.
@cottsay cottsay force-pushed the cottsay/shell-tests branch from cba4e28 to e31f37f Compare October 21, 2025 23:46
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.

2 participants