Skip to content

Pester should report tests failure if there is syntax error? #91

@xinhuang

Description

@xinhuang

Now if there is an syntax error, e.g. misspelled words, missing closing curly brace, pester will yield an error while loading the script, but later in the test report, result is still green.

I'm using Jenkins to scheduled run all tests, and use Jenkins job status to monitor test result. But if there's syntax error, I'm expecting the job to be red, rather later examine the xUnit plugin report and find out some tests are missing.

I'd like to propose 2 solutions:

  1. Mark one test failure of every script error. This is the simplest to do.
  2. Mark result as failed, but calculate how many Its in failed script, to roughly calculate the number of failing test.

@scottmuc what do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions