Skip to content

Releases: dsccommunity/DscResource.Test

v0.20.0

Choose a tag to compare

@dscbot dscbot released this 02 Jul 13:01
4b8d410

[v0.20.0]

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.

v0.20.0-preview0002

v0.20.0-preview0002 Pre-release
Pre-release

Choose a tag to compare

@dscbot dscbot released this 02 Jul 12:54
4b8d410

[v0.20.0-preview0002]

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.

v0.20.0-preview0001

v0.20.0-preview0001 Pre-release
Pre-release

Choose a tag to compare

@dscbot dscbot released this 23 Jan 18:39
5efd59f

[v0.20.0-preview0001]

Fixed

  • Added tag AllowSuppressMessageAttribute to test Should not suppress the required rule to allow usage of SuppressMessageAttribute #135.

v0.19.0

Choose a tag to compare

@dscbot dscbot released this 23 Jan 06:28
502b6ee

[v0.19.0]

Fixed

  • Localization.builtModule.v5
    • Add support for overridden keys in class-based resources issue #156.
      • The tests now verify that keys used in the code file exist in the strings file, and that strings defined in the file exist in the instantiated class.

v0.19.0-preview0001

v0.19.0-preview0001 Pre-release
Pre-release

Choose a tag to compare

@dscbot dscbot released this 17 Jan 20:15
502b6ee

[v0.19.0-preview0001]

Fixed

  • Localization.builtModule.v5
    • Add support for overridden keys in class-based resources issue #156.
      • The tests now verify that keys used in the code file exist in the strings file, and that strings defined in the file exist in the instantiated class.

v0.18.0

Choose a tag to compare

@dscbot dscbot released this 01 Sep 17:50
1fe9d62

[v0.18.0]

Added

  • Add workflow for GitHub Copilot Agent.
  • ModuleManifest.common.v5.Tests
    • Added compatibility test for CmdletsToExport in modules with class-based DSC resources. The test validates that when a module contains class-based resources and has CmdletsToExport specified in the manifest, it must be set to '*' for compatibility with PSDesiredStateConfiguration 2.0.7. #165
    • Updated the test that verifies that resources are exported in the module manifest to work cross-platform.
    • Added a test to verify that the module manifest is valid.

Fixed

  • Add ability to filter out files in ExampleFiles.common.v4 #120.
  • Private function Test-FileContainsClassResource
    • Refactored to correctly find class-based resources (including parameterized attributes) and to throw detailed parse errors with file and position information.
  • ExampleFiles.common.* skip if on PowerShell 6+ #169.

Removed

  • Remove ModuleBuilder patch.

Changed

  • Changelog.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
  • ExampleFiles.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Suppress 'PSAvoidUsingConvertToSecureStringWithPlainText' ScriptAnalyzer rule.
    • Remove array addition.
  • FileFormatting.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • MarkdownLinks.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • ModuleScriptFiles.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • PSSAResource.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
    • Target all source files #163.
  • PublishExampleFiles.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • RelativePathLength.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • ResourceSchema.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
  • Remove array addition in following Public/Private functions.
    • Get-ClassResourceNameFromFile
    • Get-ModuleScriptResourceName
    • Get-SuppressedPSSARuleNameList
    • Invoke-DscResourceTest
    • Invoke_HQRM_Tests.build

v0.18.0-preview0006

v0.18.0-preview0006 Pre-release
Pre-release

Choose a tag to compare

@dscbot dscbot released this 01 Sep 17:43
1fe9d62

[v0.18.0-preview0006]

Added

  • Add workflow for GitHub Copilot Agent.
  • ModuleManifest.common.v5.Tests
    • Added compatibility test for CmdletsToExport in modules with class-based DSC resources. The test validates that when a module contains class-based resources and has CmdletsToExport specified in the manifest, it must be set to '*' for compatibility with PSDesiredStateConfiguration 2.0.7. #165
    • Updated the test that verifies that resources are exported in the module manifest to work cross-platform.
    • Added a test to verify that the module manifest is valid.

Fixed

  • Add ability to filter out files in ExampleFiles.common.v4 #120.
  • Private function Test-FileContainsClassResource
    • Refactored to correctly find class-based resources (including parameterized attributes) and to throw detailed parse errors with file and position information.
  • ExampleFiles.common.* skip if on PowerShell 6+ #169.

Removed

  • Remove ModuleBuilder patch.

Changed

  • Changelog.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
  • ExampleFiles.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Suppress 'PSAvoidUsingConvertToSecureStringWithPlainText' ScriptAnalyzer rule.
    • Remove array addition.
  • FileFormatting.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • MarkdownLinks.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • ModuleScriptFiles.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • PSSAResource.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
    • Target all source files #163.
  • PublishExampleFiles.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • RelativePathLength.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • ResourceSchema.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
  • Remove array addition in following Public/Private functions.
    • Get-ClassResourceNameFromFile
    • Get-ModuleScriptResourceName
    • Get-SuppressedPSSARuleNameList
    • Invoke-DscResourceTest
    • Invoke_HQRM_Tests.build

v0.18.0-preview0005

v0.18.0-preview0005 Pre-release
Pre-release

Choose a tag to compare

@dscbot dscbot released this 01 Sep 17:36
21dc7fb

[v0.18.0-preview0005]

Added

  • Add workflow for GitHub Copilot Agent.

Fixed

  • Add ability to filter out files in ExampleFiles.common.v4 #120.
  • ExampleFiles.common.* skip if on PowerShell 6+ #169.

Removed

  • Remove ModuleBuilder patch.

Changed

  • Changelog.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
  • ExampleFiles.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Suppress 'PSAvoidUsingConvertToSecureStringWithPlainText' ScriptAnalyzer rule.
    • Remove array addition.
  • FileFormatting.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • MarkdownLinks.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • ModuleScriptFiles.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • PSSAResource.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
    • Target all source files #163.
  • PublishExampleFiles.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • RelativePathLength.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • ResourceSchema.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
  • Remove array addition in following Public/Private functions.
    • Get-ClassResourceNameFromFile
    • Get-ModuleScriptResourceName
    • Get-SuppressedPSSARuleNameList
    • Invoke-DscResourceTest
    • Invoke_HQRM_Tests.build

v0.18.0-preview0004

v0.18.0-preview0004 Pre-release
Pre-release

Choose a tag to compare

@dscbot dscbot released this 01 Sep 16:42
8cd2b14

[v0.18.0-preview0004]

Added

  • Add workflow for GitHub Copilot Agent.

Fixed

  • Add ability to filter out files in ExampleFiles.common.v4 #120.
  • ExampleFiles.common.* skip if on PowerShell 6+ #169.

Removed

  • Remove ModuleBuilder patch.

Changed

  • Changelog.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
  • ExampleFiles.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Suppress 'PSAvoidUsingConvertToSecureStringWithPlainText' ScriptAnalyzer rule.
    • Remove array addition.
  • FileFormatting.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • MarkdownLinks.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • ModuleScriptFiles.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • PSSAResource.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • PublishExampleFiles.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • RelativePathLength.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • ResourceSchema.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
  • Remove array addition in following Public/Private functions.
    • Get-ClassResourceNameFromFile
    • Get-ModuleScriptResourceName
    • Get-SuppressedPSSARuleNameList
    • Invoke-DscResourceTest
    • Invoke_HQRM_Tests.build

v0.18.0-preview0003

v0.18.0-preview0003 Pre-release
Pre-release

Choose a tag to compare

@dscbot dscbot released this 01 Sep 16:24
9576d76

[v0.18.0-preview0003]

Added

  • Add workflow for GitHub Copilot Agent.

Fixed

  • Add ability to filter out files in ExampleFiles.common.v4 #120.

Removed

  • Remove ModuleBuilder patch.

Changed

  • Changelog.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
  • ExampleFiles.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Suppress 'PSAvoidUsingConvertToSecureStringWithPlainText' ScriptAnalyzer rule.
    • Remove array addition.
  • FileFormatting.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • MarkdownLinks.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • ModuleScriptFiles.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • PSSAResource.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • PublishExampleFiles.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • RelativePathLength.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
    • Remove array addition.
    • Remove single use variable.
  • ResourceSchema.common.v5.Tests
    • Suppress 'PSUseDeclaredVarsMoreThanAssignments' ScriptAnalyzer rule.
  • Remove array addition in following Public/Private functions.
    • Get-ClassResourceNameFromFile
    • Get-ModuleScriptResourceName
    • Get-SuppressedPSSARuleNameList
    • Invoke-DscResourceTest
    • Invoke_HQRM_Tests.build