dsccommunity / DnsServerDsc

This module contains DSC resources for the management and configuration of Windows Server DNS Server.
MIT License
65 stars 54 forks source link

DnsServerDsc: Codecov.io does not show coverage for classes #246

Closed johlju closed 3 years ago

johlju commented 3 years ago

Because the the classes are built into the DnsServerDsc.psm1 there is no comparable file for Codecov.io to report on. With the current implementation it finds source/DnsServerDsc.psm1 which is empty so it cannot record the hits/misses on that file.

The same problem ecist for Azure DevOps coverage.

We need to work out the line in ./output/.../DnsServerDsc.psm1 to the correct line in the actual class file and modify the coverage file before uploading it. ModuleBuilder has functionality for this, see:

https://github.com/dsccommunity/DscResource.DocGenerator/pull/12#issuecomment-583864591

johlju commented 3 years ago

Gonna try to work on this. It is a problem for regular modules too.

johlju commented 3 years ago

Working on it in PR https://github.com/gaelcolas/Sampler/pull/263.