microsoft / Requirements

PowerShell framework for declaratively defining and idempotently imposing system configurations
MIT License
159 stars 26 forks source link

Calling only tests (without applying) #60

Closed Stephanevg closed 4 years ago

Stephanevg commented 4 years ago

Hi guys,

For my use case, I would need to call the test blocks only of the requirements. I would still need to set them, but I would like to keep control of the action of 'setting' and use the test functions to simply have an overview of the state of a machine, without necessarly applying the setting.

Is that possible with this module? I looked and tried a bit, but I couldn't find it in the invoke-requirement parameter set. Perhaps, that could be a nice feature, having a -TestsOnly parameter or so .:)

chriskuech commented 4 years ago

You can find more functions in the module by running

(Get-Module Requirements).ExportedCommands

One of the other functions is Test-Requirement which works equivalently to your -TestsOnly parameter.