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

Improve coverage framework #4607

Merged
merged 8 commits into from
Aug 23, 2024

Conversation

fgalan
Copy link
Member

@fgalan fgalan commented Aug 23, 2024

Issue #4418 (and additional minor fixes)

Copy link
Member Author

Choose a reason for hiding this comment

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

make coverage_functional_test (different from make functional_test) needs that every .test file has a different name or some omissions may occur.

We have detected 3 name repeated in .test files. This PR fix it.

NTC (informative)

@@ -110,7 +110,6 @@ TEST(AppendContextElementRequest, release)
AppendContextElementRequest acer;
std::string out;
ContextAttribute* caP = new ContextAttribute("caName", "caType", "121");
Metadata* mdP = new Metadata("mdName", "mdType", "122");
Copy link
Member Author

Choose a reason for hiding this comment

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

During the preparation of this PR we detected some unused variables in unit tests.

/home/fermin/src/fiware-orion/test/unittests/convenience/AppendContextElementRequest_test.cpp:113:33: error: unused variable ‘mdP’ [-Werror=unused-variable]
  113 |    Metadata*                    mdP = new Metadata("mdName", "mdType", "122");
      |                                 ^~~

NTC (informative)

@fgalan
Copy link
Member Author

fgalan commented Aug 23, 2024

make coverage metrics, as example/reference:

imagen

Overall coverage rate:
  lines......: 82.4% (18566 of 22536 lines)
  functions..: 88.7% (1592 of 1794 functions)

@fgalan fgalan assigned fgalan and unassigned fgalan Aug 23, 2024
@fgalan fgalan requested a review from mapedraza August 23, 2024 14:27
Copy link
Collaborator

@mapedraza mapedraza left a comment

Choose a reason for hiding this comment

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

LGTM

@mapedraza mapedraza merged commit effdc5a into master Aug 23, 2024
12 checks passed
@fgalan fgalan deleted the hardening/4418-fix-coverage-functional-tests branch August 23, 2024 17:31
@fgalan
Copy link
Member Author

fgalan commented Aug 23, 2024

@fisuda this PR does some small modifications to doc/manuals/admin/build_source.md. It would be great if you could do a PR with the sync in the Japanese translation, pls. Thanks!

fisuda added a commit to fisuda/fiware-orion that referenced this pull request Aug 23, 2024
@fisuda
Copy link
Contributor

fisuda commented Aug 23, 2024

I sent the PR #4608.
Thanks.

fgalan added a commit that referenced this pull request Aug 26, 2024
(JP) Add documentation about coverage framework (#4607)
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.

3 participants