Skip to content
This repository has been archived by the owner on May 15, 2018. It is now read-only.

Adding tests to cDscResourceDesigner #100

Open
wants to merge 36 commits into
base: development
Choose a base branch
from

Conversation

ArtWDrahn
Copy link
Contributor

This was forked against the development branch because I wanted to incorporate some of the changes that we're being made. This is ~60% code coverage, so still pretty far from my goal of 80% but I was beginning to question some of my testing methods so I figured it would be best to put it in front of some people while I continued to add and refactor. Suggestions welcome!

…tests

Conflicts:
	Tooling/cDscResourceDesigner/cDscResourceDesigner.psm1
@dlwyatt
Copy link
Member

dlwyatt commented Jan 24, 2015

Why is git showing differences on lines that appear to be identical in this PR? It makes it very hard to evaluate... did you change spaces to tabs or vice versa, file encoding, or something?

Edit: According to Winmerge, it's the line endings. Looks like we've somehow got a file with Unix line endings in the development branch instead of Windows. I'll fix that, and then your PR should be easier to evaluate.

Describe Test-cDscResource {
Context 'A module with a psm1 file but no matching schema.mof' {
Setup -Dir TestResource
Setup -File TestResource\TestResource.ps1m -Content (Get-TestDscResourceModuleContent)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume "ps1m" is a typo here, supposed to be psm1?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's assume so. 😄 Fixed it either way.

@dlwyatt
Copy link
Member

dlwyatt commented Jan 25, 2015

I haven't had time for a very thorough review of all these new tests, but most of them are passing, which is a good sign. :) (There was one exception; I added a line comment for that.)

@ArtWDrahn
Copy link
Contributor Author

Glad most of them are passing! 😆 Made some adjustments you commented on, hopefully I'll have more time this week to review it myself with fresh eyes and catch anything that I may have missed.

…to development-tests

Conflicts:
	Tooling/cDscResourceDesigner/cDscResourceDesigner.Tests.ps1
	Tooling/cDscResourceDesigner/cDscResourceDesigner.psm1
@dlwyatt
Copy link
Member

dlwyatt commented Feb 12, 2015

Your latest commit (merging the development branch into your PR) seems to have wiped out all of your new tests. You should probably revert to d107c61

@ArtWDrahn
Copy link
Contributor Author

Sorry about taking so long to get to this. It's rolled back now.

@@ -35,6 +35,786 @@ end
}
}
}
<<<<<<< HEAD
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got some merge conflict leftovers to take care of here :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants