In this post, I will walk you through how to include pester test as part of your CI pipeline in VSTS.

Read more about IaC Unit Test using Pester Test

1. Add Pester Test Runner task from VSTS market place

2. Mention the script folder and script file

3.Pester support out put as NUnit. Configure Publish test result task to display test report in VSTS build dashboard.

4. Execute the build

5. Test result in Build summary.

5. More details about test results.

Related Posts

About Ajeet Chouksey

As Technology Architect, Ajeet has over 12+ years of industry experience delivering enterprise solutions on the Microsoft Platform. Ajeet is passionate, certified technologist, blogger and community contributor. His specialisms are Azure IaaS/PaaS, Automation, DevOps, Agile based development processes supporting distributed teams (on shore & off shore), designing and implementing the appropriate infrastructure and platform solutions to meet the functional, operational, and deployment requirements throughout the solution life-cycle. Ajeet is member of various technical communities and discussion groups. He also conducted many boot camps on Azure and DevOps.