-
Notifications
You must be signed in to change notification settings - Fork 13
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
test-result produces incorrect counts #44
Comments
The way ament orchestrates the invocation of tests is to add them as a CTest and then make a single We want the individual test results to give us more information about what went wrong, such as the name of the gtest function that failed. This is pretty important when looking for trends and flaky tests when you're dealing with a large codebase. We want the top-level CTest result because there may be tests which don't produce their own result file, and we want So the CTest results often (but not always) contain a "duplicate" instance, and individual suites often break what CTest considers to be a single test into multiple instances. You're right, |
Thanks for the explanation! I agree that how to count the tests can be debated, but double counting them shouldn't be an option. |
I'm not sure how to fix this. I'm not aware of any mechanism to tell CTest not to report the results because the invoked process does its own reporting, and I don't see any reliable way that If you see something I don't, please consider providing a PR. |
Ok, I'll have a look and see if I get any idea.
From the individual packages stdout.log. |
Hi, I'm running
colcon test-result
in my workspace but it looks like tests are counted multiple times.then
My workspace only has 5 tests and only 1 of them is failing.
similarly other commands
If i inspect the test logs however
The text was updated successfully, but these errors were encountered: