Testing of kitchen-pester
is done via kitchen-pester
in test-kitchen
.
The provision.ps1
file is used to prepare the environment, then tests are run in test/integration/default/pester/default.tests.ps1
.
The general steps to test your changes:
- Build new gem:
chef gem build ./kitchen-pester.gemspec
- Install built gem:
chef gem install ./kitchen-pester-<version>.gem
- Test with
test-kitchen
:kitchen test
- Ensure that
PesterTestResults.xml
is created in./testresults/default-windows-2016