From 1ed49142f572d2d216edf7ca59fa21b62c010fa9 Mon Sep 17 00:00:00 2001 From: Michael Greene Date: Thu, 21 Feb 2019 08:56:15 -0600 Subject: [PATCH] Add DSC Unit tests to BVT It appears no one is verifying the PowerShellGet DSC resources. I would like to request that we add tests, starting with just the basic unit tests, to daily build validation. THIS IS LIKELY TO BREAK THE BUILD TEMPORARILY. --- DSC/Tests/Unit/MSFT_PSModule.Tests.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DSC/Tests/Unit/MSFT_PSModule.Tests.ps1 b/DSC/Tests/Unit/MSFT_PSModule.Tests.ps1 index e264d2f1..f840f1c1 100644 --- a/DSC/Tests/Unit/MSFT_PSModule.Tests.ps1 +++ b/DSC/Tests/Unit/MSFT_PSModule.Tests.ps1 @@ -97,7 +97,7 @@ try { return $mockGalleryModule } - Describe 'MSFT_PSModule\Get-TargetResource' -Tag 'Get' { + Describe 'MSFT_PSModule\Get-TargetResource' -Tag 'Get','BVT' { Context 'When the system is in the desired state' { Context 'When the configuration is present' { Context 'When the module is trusted' { @@ -254,7 +254,7 @@ try { } } - Describe 'MSFT_PSModule\Set-TargetResource' -Tag 'Set' { + Describe 'MSFT_PSModule\Set-TargetResource' -Tag 'Set','BVT' { Context 'When the system is not in the desired state' { Context 'When the configuration should be present' { BeforeAll { @@ -384,7 +384,7 @@ try { } } - Describe 'MSFT_PSModule\Test-TargetResource' -Tag 'Test' { + Describe 'MSFT_PSModule\Test-TargetResource' -Tag 'Test','BVT' { Context 'When the system is in the desired state' { Context 'When the configuration is present' { BeforeEach {