-
Notifications
You must be signed in to change notification settings - Fork 393
Changes to allow tests to be run outside of CI #882
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,8 +33,8 @@ Enter the version of the module to test. This parameter is optional. If you | |
omit it, the test runs on the latest version of the module in $env:PSModulePath. | ||
|
||
.EXAMPLE | ||
.\Module.Help.Tests.ps1 -ModuleName Pester -RequiredVersion 3.4.0 | ||
This command runs the tests on the commands in Pester 3.4.0. | ||
.\Module.Help.Tests.ps1 -ModuleName Pester -RequiredVersion 4.1.1 | ||
This command runs the tests on the commands in Pester 4.1.1. | ||
|
||
.EXAMPLE | ||
.\Module.Help.Tests.ps1 -ModuleName Pester | ||
|
@@ -63,7 +63,7 @@ Param | |
$RequiredVersion | ||
) | ||
|
||
# #Requires -Module @{ModuleName = 'Pester'; ModuleVersion = '3.4.0'} | ||
# #Requires -Module @{ModuleName = 'Pester'; ModuleVersion = '4.1.1'} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a technical reason to upgrade to v4 as part of this PR? I think it might be better to do this as a separate PR? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the test fixes are sort of entwined, by doing them all at once I won't need to change the tests again. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, I see. Then we also need to update the documented version number of Pester in the test section here of the developer guide. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. quite right - fixed |
||
|
||
<# | ||
.SYNOPSIS | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,7 +106,7 @@ function SuppressPwdParam() | |
} | ||
|
||
Context "Rule suppression within DSC Configuration definition" { | ||
It "Suppresses rule" -skip:((Test-PSEditionCoreCLRLinux) -or ($PSVersionTable.PSVersion -lt [Version]'5.0.0')) { | ||
It "Suppresses rule" -skip:((!$IsWindows) -or ($PSVersionTable.PSVersion.Major -lt 5)) { | ||
$suppressedRule = Invoke-ScriptAnalyzer -ScriptDefinition $ruleSuppressionInConfiguration -SuppressedOnly | ||
$suppressedRule.Count | Should Be 1 | ||
} | ||
|
@@ -215,4 +215,4 @@ Describe "RuleSuppressionWithScope" { | |
$suppressed.Count | Should Be 1 | ||
} | ||
} | ||
} | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this a change of the file's encoding? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it doesn't look like it. it looks like there was previously no newline at the end of the file. |
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.
I guess you are planning to introduce a
Travis
build for Linux/Mac as well? I think it would be good if you open an issue with a brief description of the high level plan of PR's to come so that we can see the big picture.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.
yup, that's the plan, I'll work on that issue
the start is here: #886
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.
Thanks. Looks good to me.