DscResource.Test

0.20.0

Testing DSC Resources against HQRM guidelines

Minimum PowerShell version

5.0

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name DscResource.Test

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name DscResource.Test

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) dsccommunity. All rights reserved.

Package Details

Author(s)

  • DSC Community

Tags

DesiredStateConfiguration DSC DSCResourceKit DSCResource

Functions

Clear-DscLcmConfiguration Get-DscResourceTestContainer Get-InvalidArgumentRecord Get-InvalidOperationRecord Get-InvalidResultRecord Get-ObjectNotFoundRecord Initialize-TestEnvironment Invoke-DscResourceTest New-DscSelfSignedCertificate Restore-TestEnvironment Task.Fail_Build_If_HQRM_Tests_Failed Task.Invoke_HQRM_Tests_Stop_On_Fail Task.Invoke_HQRM_Tests Wait-ForIdleLcm

Dependencies

This module has no dependencies.

Release Notes

## [0.20.0] - 2026-07-02

### Fixed

- `Fail_Build_If_HQRM_Tests_Failed` now fails the build when the Pester run
 reports failed blocks or failed containers (for example a discovery failure
 such as an empty `-ForEach`), not only when `FailedCount` is greater than zero.
 Such container/discovery failures leave `FailedCount` at `0`, so the previous
 gate let them pass as a green build. The task now gates on the Pester `Result`
 property, matching the check already used in `Invoke_HQRM_Tests`.
- Added tag `AllowSuppressMessageAttribute` to test `Should not suppress the required rule` to allow usage of `SuppressMessageAttribute` [#135](https://github.com/dsccommunity/DscResource.Test/issues/135).

FileList

Version History

Version Downloads Last updated
0.20.0 (current version) 183 7/2/2026
0.20.0-previ... 5 7/2/2026
0.20.0-previ... 4,035 1/23/2026
0.19.0 52,809 1/23/2026
0.19.0-previ... 128 1/17/2026
0.18.0 55,705 9/1/2025
0.18.0-previ... 4 9/1/2025
0.18.0-previ... 5 9/1/2025
0.18.0-previ... 4 9/1/2025
0.18.0-previ... 4 9/1/2025
0.18.0-previ... 2,227 8/11/2025
0.18.0-previ... 8 8/8/2025
0.17.2 60,934 2/28/2025
0.17.2-previ... 4 2/28/2025
0.17.1 9,604 2/2/2025
0.17.1-previ... 6 2/2/2025
0.17.0 3,208 1/25/2025
0.17.0-previ... 5 1/25/2025
0.17.0-previ... 3,717 11/25/2024
0.17.0-previ... 57 11/24/2024
0.17.0-previ... 1,937 10/10/2024
0.17.0-previ... 28 10/9/2024
0.17.0-previ... 4 10/9/2024
0.17.0-previ... 471 9/29/2024
0.16.3 53,440 8/29/2024
0.16.3-previ... 835 8/14/2024
0.16.3-previ... 7 8/13/2024
0.16.2 234,935 5/18/2023
0.16.2-previ... 76 5/17/2023
0.16.2-previ... 6,013 8/1/2022
0.16.1 169,087 4/20/2022
0.16.1-previ... 19 4/20/2022
0.16.1-previ... 37 4/18/2022
0.16.0 129,757 9/11/2021
0.16.0-previ... 22 9/11/2021
0.15.2 2,060 9/8/2021
0.15.2-previ... 19 9/8/2021
0.15.2-previ... 37 6/9/2021
0.15.1 63,113 3/29/2021
0.15.1-previ... 22 3/29/2021
0.15.1-previ... 26 2/14/2021
0.15.0 18,668 2/9/2021
0.15.0-previ... 25 2/9/2021
0.15.0-previ... 25 2/8/2021
0.15.0-previ... 23 2/5/2021
0.14.3 9,534 1/13/2021
0.14.3-previ... 24 1/13/2021
0.14.2 2,439 1/5/2021
0.14.2-previ... 21 1/5/2021
0.14.1 29,431 11/12/2020
0.14.1-previ... 28 10/21/2020
0.14.1-previ... 26 8/16/2020
0.14.0 144,207 8/8/2020
0.14.0-previ... 21 8/8/2020
0.13.3 109,985 6/1/2020
0.13.3-previ... 20 6/1/2020
0.13.2 851 5/30/2020
0.13.2-previ... 21 5/30/2020
0.13.1 27,164 5/15/2020
0.13.1-previ... 20 5/15/2020
0.13.0 69,640 3/28/2020
0.13.0-previ... 25 3/26/2020
0.13.0-previ... 25 1/24/2020
0.12.1 253,742 1/16/2020
0.12.1-previ... 23 1/16/2020
0.12.0 1,408 1/16/2020
0.12.0-previ... 22 1/16/2020
0.12.0-previ... 22 1/16/2020
0.11.1 69,896 1/6/2020
0.11.1-previ... 23 1/6/2020
0.11.1-previ... 23 1/6/2020
0.11.0 57,859 12/29/2019
0.11.0-previ... 26 12/29/2019
0.11.0-previ... 26 12/29/2019
0.11.0-previ... 25 12/28/2019
0.11.0-previ... 24 12/28/2019
0.10.1-previ... 25 12/28/2019
0.10.0 8,899 12/28/2019
0.10.0-previ... 25 12/28/2019
0.9.1-previe... 24 12/28/2019
0.9.0 3,188 12/27/2019
0.9.0-previe... 23 12/27/2019
0.8.1-previe... 22 12/27/2019
0.8.1-previe... 22 12/23/2019
0.8.1-previe... 22 12/23/2019
0.8.1-previe... 22 12/22/2019
0.8.0 129 12/21/2019
0.8.0-previe... 23 12/21/2019
0.8.0-previe... 23 12/21/2019
0.8.0-previe... 23 12/21/2019
0.7.0 82 12/19/2019
0.7.0-previe... 22 12/19/2019
0.6.0-previe... 22 12/18/2019
0.5.4-previe... 24 12/17/2019
0.5.3 97 12/16/2019
0.5.3-previe... 25 12/16/2019
0.5.2 57 12/13/2019
0.5.2-previe... 22 12/13/2019
0.5.1 30 12/13/2019
0.5.1-previe... 22 12/13/2019
0.5.0 33 12/12/2019
0.5.0-previe... 25 12/12/2019
0.4.3 87 12/4/2019
0.4.3-previe... 22 12/4/2019
0.4.2 29 12/4/2019
0.4.2-previe... 23 12/4/2019
0.4.1 31 12/4/2019
0.4.1-previe... 22 12/4/2019
0.4.1-previe... 24 12/4/2019
0.4.0 31 12/4/2019
0.4.0-previe... 24 12/3/2019
0.3.1-previe... 23 12/3/2019
0.3.0 39 12/2/2019
0.3.0-previe... 23 12/2/2019
0.2.1-previe... 23 12/2/2019
0.2.0 30 11/27/2019
0.2.0-previe... 22 11/27/2019
0.2.0-previe... 23 11/26/2019
0.2.0-previe... 22 11/26/2019
0.2.0-previe... 22 11/26/2019
0.2.0-previe... 22 11/26/2019
Show more