Skip to content
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

Add option to throw on failure #1908

Merged
merged 2 commits into from
Apr 17, 2021
Merged

Add option to throw on failure #1908

merged 2 commits into from
Apr 17, 2021

Commits on Apr 17, 2021

  1. Add option to throw on failure

    Throw on failure when enabled. If you want to process the result for some reason after catching the exception, you need to use `$result = try { Invoke-Pester ... } catch { $err = $_ }`, not `try { $result = Invoke-Pester ... } catch { }` because then the assignment will never happen and `$result` will be null.
    nohwnd committed Apr 17, 2021
    Configuration menu
    Copy the full SHA
    d0fa7f4 View commit details
    Browse the repository at this point in the history
  2. Update tst/Pester.RSpec.ts.ps1

    nohwnd committed Apr 17, 2021
    Configuration menu
    Copy the full SHA
    68362f4 View commit details
    Browse the repository at this point in the history