Skip to content

CodeCoverage of files containing DSC Configurations#163

Merged
nohwnd merged 2 commits intopester:Betafrom
dlwyatt:CoverageOfConfiguration
Jul 25, 2014
Merged

CodeCoverage of files containing DSC Configurations#163
nohwnd merged 2 commits intopester:Betafrom
dlwyatt:CoverageOfConfiguration

Conversation

@dlwyatt
Copy link
Copy Markdown
Member

@dlwyatt dlwyatt commented Jul 25, 2014

DSC's use of dynamic keywords screws with the code coverage breakpoint-based implementation quite a bit.
This commit gets it working, more or less, by ignoring commands in the file which do not trigger breakpoints even when they're executed (based on trial and error.)

This should fix #162

dlwyatt added 2 commits July 24, 2014 21:20
DSC's use of dynamic keywords screws with the code coverage breakpoint-based implementation quite a bit.
This commit gets it working, more or less, by ignoring commands in the file which do not trigger breakpoints even when they're executed (based on trial and error.)
Revised new code slightly so most of it is only executed on PowerShell v4+.  Dynamic keywords didn't exist in v3.0, and executing IsChildOfHashtableDynamicKeyword might have caused errors when StrictMode is enabled.
nohwnd added a commit that referenced this pull request Jul 25, 2014
CodeCoverage of files containing DSC Configurations
@nohwnd nohwnd merged commit dcd07c9 into pester:Beta Jul 25, 2014
@dlwyatt dlwyatt deleted the CoverageOfConfiguration branch July 25, 2014 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants