Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Add Unit and Integration Tests Templates #71

Closed
PlagueHO opened this issue Dec 17, 2015 · 0 comments
Closed

Add Unit and Integration Tests Templates #71

PlagueHO opened this issue Dec 17, 2015 · 0 comments

Comments

@PlagueHO
Copy link
Contributor

A set of Unit and Integration Test template files have been developed and are available as part of the xNetworking resource (https://github.com/PlagueHO/xNetworking/tree/dev/Templates). I'm just waiting on this PR for these changes to be moved into the upstream PowerShell repo.

These test templates use the *-TestEnvironment functions in DSCResource.Tests. They also automatically download or update DSCRsource.Tests using Git.exe to the root of the DSC resource being tested.

Ideally these Test templates could be added to this repo so that they are available to all DSC resources. The documentation would also need to be updated to instruct on the use of these Test Templates.

This change was initially discussed here.

Also, this change should also incorporate adding a .gitignore file to the DSCResource.Template folder containing DSCResources.Tests to ensure that the DSCResources.Tests folder is never accidentally added to a DSC Resource.

I've actually made the changes above to my fork of this repo and will submit a PR for this if this is agreeable?

Cheers!

KarolKaczmarek added a commit that referenced this issue Jan 7, 2016
Address Issue #71 - Make Unit test and Integration test templates available
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants