When contributing to SharePointDsc, you have to make sure unit tests always complete successfully when submitting a Pull Request. The Wiki already contained some commands to run unit tests, but you had to run these manually.
To make running unit tests easier, two scripts have recently been added to the SharePointDsc repository:
.\tests\RunUnitTestsForAllResources.ps1 -SharePointVersion [2013/2016/2019/Subscription] [-DoNotBuildModule]
.\tests\RunUnitTestsForResource.ps1 -Resource <Module_Name> [-DoNotBuildModule]
These scripts are located in the tests folder in the repository, the above commands can be executed from the root of the repository on your machine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.