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

Add unit tests for Test Coverage #685

Open
wants to merge 38 commits into
base: master
Choose a base branch
from

Conversation

radurentea
Copy link
Collaborator

No description provided.

@radurentea radurentea changed the title Add gcov example in testfiles folder; Testing on CI Add unit tests for Test Coverage May 10, 2022
@radurentea radurentea marked this pull request as ready for review May 10, 2022 08:14
@github-actions
Copy link

Pull request has been marked as stale since there are no activities, and this will be closed in 5 days if there are no further activities

@github-actions github-actions bot added the stale Stale PR or Issue label May 26, 2022
@brianignacio5
Copy link
Collaborator

Could you simplify the required files for these testing ?

gcovr only needs the .gcda and .gcno files in the project. So having the .c files should be enough to run gcovr and get the output.

You could test the html against a given expected output in buildHtml function. The generateCoverageForEditors function should also be more descriptive,

@github-actions github-actions bot removed the stale Stale PR or Issue label May 27, 2022
@github-actions
Copy link

Pull request has been marked as stale since there are no activities, and this will be closed in 5 days if there are no further activities

@github-actions github-actions bot added the stale Stale PR or Issue label Jun 25, 2022
@github-actions github-actions bot closed this Jul 1, 2022
@radurentea radurentea reopened this Jul 25, 2022
@radurentea radurentea added ongoing Ongoing Issue or PR, this label will be used for issue or PR which is to be excluded by stale bot and removed stale Stale PR or Issue labels Jul 25, 2022
Copy link
Collaborator

@brianignacio5 brianignacio5 left a comment

Choose a reason for hiding this comment

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

The test("generateCoverageForEditors") is not testing anything.

Should open one of the test project files and test that result array contain an editor with same filePath as one of the file from the test project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ongoing Ongoing Issue or PR, this label will be used for issue or PR which is to be excluded by stale bot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants