Skip to content

Create shortcuts for running unit tests and sim tests - #334

Merged
yuzhiliu8 merged 5 commits into
mainfrom
user/yliu/test-separation
Aug 7, 2026
Merged

Create shortcuts for running unit tests and sim tests#334
yuzhiliu8 merged 5 commits into
mainfrom
user/yliu/test-separation

Conversation

@yuzhiliu8

Copy link
Copy Markdown
Contributor

Issue(s) addressed: #333

Description: Renames all sim tests to start with "sim_test_*.py". that way you can put in --pytest-args -o python_files="sim_test_*.py" to run only the sim_tests

regular colcon test pytest looks only for regular file pattern, "test_*"

added new aliasrc commands:
ctsim: tests all files with sim_test_ prefix over all ament_python packages
ctpsim: tests all specified/selected packages test files with sim_test_prefix pytest arg

Testing Done: Ran shortcuts locally to test.

@yuzhiliu8 yuzhiliu8 changed the title User/yliu/test separation Create shortcuts for running unit tests and sim tests Aug 7, 2026
@yuzhiliu8
yuzhiliu8 force-pushed the user/yliu/test-separation branch from f01affc to afb515f Compare August 7, 2026 00:45
@yuzhiliu8
yuzhiliu8 merged commit 3ab57ce into main Aug 7, 2026
1 of 3 checks passed
@yuzhiliu8
yuzhiliu8 deleted the user/yliu/test-separation branch August 7, 2026 00:46
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.

1 participant