Skip to content

Add support for configuring Pester's SkipRemainingOnFailure and Verbosity options #80

Description

@joshooaj

The Pester configuration option Output.Verbosity is hard-coded to Detailed which can make it difficult to identify which test failed in the case where you have hundreds or thousands of tests (especially when running automatically generated documentation tests).

In some cases you might also want to stop running tests as soon as you hit the first failed test rather than wait for all tests to complete. Pester has the Run.SkipRemainingOnFailure option that can be set to Run if all remaining tests from all containers in the run should be skipped, or Container or Block for a more narrow scope.

I'd like to be able to configure these options like so...

Properties {
    $PSBPreference.Test.SkipRemainingOnFailure = 'Run'
    $PSBPreference.Test.OutputVerbosity = 'Normal'
}

I'll submit a PR for review shortly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions