xPSDesiredStateConfiguration icon indicating copy to clipboard operation
xPSDesiredStateConfiguration copied to clipboard

Tests\Unit\MSFT_xPackageResource.Tests.ps1: Many tests are actually Integration tests

Open mhendric opened this issue 6 years ago • 1 comments

It seems that many of the tests in Tests\Unit\MSFT_xPackageResource.Tests.ps1 are actually Integration tests. They go through full package installations using Set-TargetResource and don't Mock any of the functions that Set-TargetResource calls. I think these should probably be moved to the Integration tests file instead. That allows us to (try to) keep the Unit tests non-destructive. I wanted to see what others think about this.

mhendric avatar Mar 06 '19 01:03 mhendric

Agreed! Good catch.

PlagueHO avatar Mar 08 '19 23:03 PlagueHO