Skip to content

Conversation

radurentea
Copy link
Collaborator

No description provided.

@radurentea radurentea force-pushed the unit-tests-test-coverage branch from 8e02057 to b0222fc Compare April 18, 2022 07:37
@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
@radurentea radurentea force-pushed the unit-tests-test-coverage branch from 56c20ac to fa60585 Compare August 3, 2022 12:08
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