-
Notifications
You must be signed in to change notification settings - Fork 49
Added CodeCoverage for Class based resources - Fixes #173 #212
Conversation
… of APPVEYOR environment
Codecov Report
@@ Coverage Diff @@
## dev #212 +/- ##
===================================
+ Coverage 20% 31% +11%
===================================
Files 4 4
Lines 476 477 +1
===================================
+ Hits 99 152 +53
+ Misses 377 325 -52 |
Great work on this one! Glad to see this issue being fixed! 😄 Just a few minor style comments. Reviewed 3 of 3 files at r1. AppVeyor.psm1, line 256 at r2 (raw file):
Please use single quote on this string, and on the string below. AppVeyor.psm1, line 262 at r2 (raw file):
Please add a space between if and parenthesis ( Tests/Unit/AppVeyor.Tests.ps1, line 15 at r1 (raw file):
Can we add the module to the description, i.e Tests/Unit/AppVeyor.Tests.ps1, line 15 at r1 (raw file):
Non-blocking personal opinion. Would it be possible to add a blank row before this row and in the code below where appropriate to create a natural separation of code blocks. It would be easier to review. Tests/Unit/AppVeyor.Tests.ps1, line 16 at r1 (raw file):
This context block seems unnecessary. If this should be kept, then please change the description to what scenario is being tested 'When...' . Also, change to Tests/Unit/AppVeyor.Tests.ps1, line 22 at r1 (raw file):
This is not necessary when no code is being mocked. The Tests/Unit/AppVeyor.Tests.ps1, line 3 at r2 (raw file):
Please add a space between if and parenthesis ( Tests/Unit/AppVeyor.Tests.ps1, line 7 at r2 (raw file):
This is non-blocking since there is not guideline for this, just my personal opinion, and an attempt for the tests to be similar. 😄 I suggest we don't do the Describe-blocks recursive, I think it is mean that the Context blocks can be made recursive. It do work this way though, but I have seen it giving strange output in the Pester result object. Could we instead start with InModuleScope as proposed in these tests (currently in PR). Comments from Reviewable |
@limiteddenial to be able to merge this change you need to have sign the CLA. |
Just a few tiny review comments left, then this looks good for me. @limiteddenial When you are done with the review comments, please go into Reviewable (the purple button in the PR description) and write 'Done' on all the comments, then press the green Publish button and the comments will be sent back to GitHub. We know then that you are finished with the change, and also make it possible for me to acknowledge (resolve) the review comment. 😄 Reviewed 2 of 2 files at r3. Tests/Unit/AppVeyor.Tests.ps1, line 18 at r3 (raw file):
minor typo:" directories" Tests/Unit/AppVeyor.Tests.ps1, line 27 at r3 (raw file):
Tests/Unit/AppVeyor.Tests.ps1, line 28 at r3 (raw file):
Can we use single quotes here? Tests/Unit/AppVeyor.Tests.ps1, line 32 at r3 (raw file):
Could we use a space after the opening brace and before the closing brace, for all occurrences, to be consequent? Throughout the file. Tests/Unit/AppVeyor.Tests.ps1, line 73 at r3 (raw file):
minor typo:" directories" Comments from Reviewable |
Review status: 2 of 3 files reviewed at latest revision, 5 unresolved discussions, some commit checks failed. Tests/Unit/AppVeyor.Tests.ps1, line 18 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/AppVeyor.Tests.ps1, line 27 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/AppVeyor.Tests.ps1, line 28 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/AppVeyor.Tests.ps1, line 32 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/AppVeyor.Tests.ps1, line 73 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Comments from Reviewable |
@kwirkykat suggest we merge this PR first, and I can then rebase my other PR's on top of this one. Reviewed 1 of 1 files at r4. Comments from Reviewable |
Invoke-AppveyorTestScriptTask
cmdlet functionality for CodeCoverage for Class based resources (issue #173)AppVoyer.psm1
and testedInvoke-AppveyorTestScriptTask
to verify it adds all the folders needed for CodeCoverage when runningInvoke-Pester
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)