-
-
Notifications
You must be signed in to change notification settings - Fork 476
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
Set-TestInconclusive does not fail the test when running in -Strict mode #885
Comments
Repro: $path = "$env:TEMP\Strict.tests.ps1"
'describe "a" { it "b" { Set-TestInconclusive } }' | Set-Content $path
Invoke-Pester -Strict "$env:TEMP\Strict.tests.ps1"
# output:
# Tests completed in 36ms
# Tests Passed: 0, Failed: 0, Skipped: 0, Pending: 0, Inconclusive: 1 |
This one is going to be opinionated but the user should make a choice whether to mark inconclusive as failed or not. Therefore only making it fail when using |
This one is still happening. The |
@nohwnd I am checking this as possible first issue to contribute to, but is this still relevant since in the docs Or should the resolution for this should cover both |
@renehernandez Yes this is still valid. The underlying mechanism of setting the test result is (I hope :)) the same for both |
@nohwnd Sounds good, I am go to start working on it this weekend |
Good, ping me if you need help:) twitter will get you faster response :) |
Setting test to inconclusive marks the test as inconclusive even when running in Strict mode, we are probably making the check first, and then running the test.
Related #529
The text was updated successfully, but these errors were encountered: