-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert to use shared AppVeyor module and Markdown/Example Tests - Fixes #68 #77
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #77 +/- ##
===================================
Coverage ? 68%
===================================
Files ? 6
Lines ? 719
Branches ? 0
===================================
Hits ? 494
Misses ? 225
Partials ? 0 |
Hi @RichardSiddaway - I thought I'd tag you for a review on this one because I noticed you're marked as a repo maintainer now 😁 and I've been hammering the other repo maintainers with review requests pretty hard lately. Any chance you take a look at this one? It is primarily a clean up job to try and begin to bring xComputerManagement up to standards. I'm think it is OK that we're at 68% unit test coverage, but I'll try and bring it up to the magic 70% mark over the next few months. |
if ($res.FailedCount -gt 0) { | ||
throw "$($res.FailedCount) tests failed." | ||
} | ||
Invoke-AppveyorTestScriptTask ` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need -ExcludeTag @()
otherwise they are excluded ant you can't opt-in.
I just saw that while browsing. Have not done a review. Hoping @RichardSiddaway have time to the full review. 😄 |
@johlju - any chance you could review this one for me if you get a moment? |
Reviewed 3 of 6 files at r1, 1 of 2 files at r2, 2 of 2 files at r3. .markdownlint.json, line 4 at r3 (raw file):
This should be "one" now. Changed in PR recently merged into DscResource.Tests. README.md, line 10 at r3 (raw file):
Maybe add links to their respectively header on each of these resources? README.md, line 18 at r3 (raw file):
Missing resource xVirtualMemory here README.md, line 252 at r3 (raw file):
I started to comment on the examples, but realized there was a lot style "errors" so you have not fixed. Those. Do you want to fix these in this PR or in another PR? Comments from Reviewable |
@johlju - I've borrowed the branch header from xSQLServer README.MD and I'll convert all resource I maintain over to that for consistency. Hope that is OK? Should be good to review now. Review status: 4 of 6 files reviewed at latest revision, 5 unresolved discussions. .markdownlint.json, line 4 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. appveyor.yml, line 24 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. README.md, line 10 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Normally I'd do this, but as I'm converting this to Wiki/Auto-documentation soon (just doing the clean up in stages) it won't make much sense to do so 😁 README.md, line 18 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Good catch! Done README.md, line 252 at r3 (raw file): Previously, johlju (Johan Ljunggren) wrote…
I've added another issue to get this fixed 😁 I'm trying to break the clean up of this resource down into stages. These examples will all go anyway once I move to Wiki/Auto-documentation (very soon). Comments from Reviewable |
Yes, of course it's okay 😄 Glad that it could be reused. i will review those other repos as well. 😄 You got tests failing Reviewed 3 of 3 files at r4. appveyor.yml, line 6 at r4 (raw file):
I don't think this should be here. Point to your fork. :) Comments from Reviewable |
Thanks for reviewing @johlju - the tests will continue to fail on this one until this PR (PowerShell/DscResource.Tests#158) goes through. Once it is in I'll trigger AppVeyor again and they should then pass. Review status: 5 of 6 files reviewed at latest revision, 1 unresolved discussion. appveyor.yml, line 6 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Fixed. I was using this PR/repo to test the Custom PSSA rules. Comments from Reviewable |
Reviewed 1 of 1 files at r5. Comments from Reviewable |
I'll ignore the codecov not meeting target of 70% as we're only just introducing this. This has been raised in issue #81. |
This PR converts the resource module to use the shared AppVeyor.psm1 module from DSCResource.Tests. It also fixes the README.MD markdown errors. Support for codecoverage reporting via CodeCov.io has also been added.
This change is