dsccommunity / AzureDevOpsDsc

This module contains DSC resources for deployment and configuration of initially Azure DevOps Services and later Azure DevOps Server.
MIT License
3 stars 6 forks source link

AzureDevOpsDsc: Increase unit test, code coverage #22

Open SphenicPaul opened 3 years ago

SphenicPaul commented 3 years ago

Details of the scenario you tried and the problem that is occurring

Test coverage threshold in the build.yml file is currently set to 40 (%) to allow initial builds to execute/succeed - Although a number of classes within the unit tests are covered, Pester is not recognising the coverage.

This needs investigating and may require a refactoring of tests and/or classes (also note #10 relating to classes within the module).

Ideally, attempt to set code coverage threshold to 100% or 95%.

johlju commented 3 years ago

Coverage threshold can be set to 85%, but if the actual code coverage is higher than that it's better.