-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Update travis-ci script so that PRs can fail due to pester tests #4830
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
Conversation
|
@TravisEz13 can you please briefly describe the issue, root cause and explain the fix? That would be helpful to the review. |
|
@daxian-dbw updated the description. |
f66f23f to
6a63806
Compare
tools/failingTests/fail.tests.ps1
Outdated
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'll add the line ending later. I'll use this change to remove the tag that forces a test failure.
tools/travis.ps1
Outdated
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.
Isn't this change already done in #4807?
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 rebased and resolved the issue.
…ilure Make Test-PSPesterResults throw if there is a failure
b2ec3e2 to
1fd0c55
Compare
|
Verified tests fail correctly here: https://travis-ci.org/PowerShell/PowerShell/jobs/275168248 |
markekraus
left a comment
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.
2 minor formatting comments, otherwise LGTM
build.psm1
Outdated
| [switch]$IncludeFailingTest | ||
| ) | ||
|
|
||
| if($IncludeFailingTest.IsPresent) |
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.
space between if and (
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.
Resolved
| } | ||
|
|
||
| if($hasRunFailingTestTag) | ||
| { |
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.
space between if and (
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.
Resolved
FYI @markekraus
Test-PSPesterResults was expected to throw an error by the travis.ps1. It was only writing to the host.
I've updated Test-PSPesterResults to throw an error after it writes to the host.
I've also added a switch to Start-PSPester which will inject a failing test and the [includeFailingTest] in travis.ps1 which will use this switch so we can verify that it works.