microsoft / azure-pipelines-tasks

Tasks for Azure Pipelines
https://aka.ms/tfbuild
MIT License
3.5k stars 2.61k forks source link

PowerShell L0 unit tests #1001

Closed mmajcica closed 8 years ago

mmajcica commented 8 years ago

Hi,

it may sound obvious and simple but, how to run all of the PowerShell unit tests? I have some experience with Pester, but you seem to use some custom cmdlets for mocking and assertions. How would you execute and check all of the available PosH unit tests?

Thanks

ericsciple commented 8 years ago

https://github.com/Microsoft/vso-agent-tasks/blob/master/docs/runningtests.md

mmajcica commented 8 years ago

Does this mean that gulp will invoke PS tests also?

Thanks

ericsciple commented 8 years ago

Yes if powershell.exe is in your PATH (will be the case on Windows boxes). Mocha is the test runner for all tests (Node and PowerShell). Each test runs in a separate process (isolation).