-
Notifications
You must be signed in to change notification settings - Fork 49
Code coverage does not analyze code in all module files in this repository #208
Comments
Good call @johlju - this looks like a goo idea. So there would be three different code coverage file patterns:
So the |
Yes my thought was three patterns. I think we need to add and I think new |
Actually there will be these three file patterns since the code block that will change does not affect Harness-repos.
The second and the third might be able to be the same. |
- Added more tests for custom Script Analazyer rules to increased code coverage. These new tests call the Measure-functions directly. - Changed so that DscResource.Tests repository can analyze code coverage for the helper modules (issue PowerShell#208).
- Added more tests for custom Script Analazyer rules to increased code coverage. These new tests call the Measure-functions directly. - Changed so that DscResource.Tests repository can analyze code coverage for the helper modules (issue PowerShell#208).
- Added more tests for custom Script Analazyer rules to increased code coverage. These new tests call the Measure-functions directly. - Changed so that DscResource.Tests repository can analyze code coverage for the helper modules (issue PowerShell#208).
- Added more tests for custom Script Analazyer rules to increased code coverage. These new tests call the Measure-functions directly. - Changed so that DscResource.Tests repository can analyze code coverage for the helper modules (issue PowerShell#208).
Currently when this repository is tested, the code coverage is only reported for the module files in the root folder.
Thats because the following code block does not add more than the modules in the root folder.
DscResource.Tests/AppVeyor.psm1
Lines 250 to 268 in f9e3dfd
Suggest we use the helper function
Test-IsRepositoryDscResourceTests
to see if we are testing this repository, and if so, add all the module files (.psm1) under sub folders as well. So we can get code coverage for all the helper modules like DscResource.AnalyzerRules, DscResource.CodeCoverage and DscResource.DocumentationHelper.The text was updated successfully, but these errors were encountered: