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

testrunner: start adding IDs and columns to error messages #7343

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

firewave
Copy link
Collaborator

No description provided.

@firewave
Copy link
Collaborator Author

firewave commented Feb 28, 2025

Requires #4377 and #7342 to be merged first.

This will help with identifying missing test coverage. Those should be collected below https://trac.cppcheck.net/ticket/12232.

It will also make clearer what is being tested. And would allow to re-group/limit of of the tests (in case someone really got absolutely nothing else to do).

@firewave

This comment was marked as outdated.

@firewave firewave changed the title testrunner: start adding IDs to error messages testrunner: start adding IDs and columns to error messages Feb 28, 2025
@firewave firewave force-pushed the unique-id branch 3 times, most recently from d314bac to cc587b1 Compare February 28, 2025 18:09
@@ -132,23 +133,23 @@ class TestUnusedFunctions : public TestFixture {
" if (f1())\n"
" { }\n"
"}");
ASSERT_EQUALS("[test.cpp:1]: (style) The function 'f1' is never used.\n", errout_str());
ASSERT_EQUALS("[test.cpp:1:0]: (style) The function 'f1' is never used. [unusedFunction]\n", errout_str());
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These should probably have a proper column.

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