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

Pester task validate that Configuration property is missing #416

Open
splatteredbits opened this issue Apr 25, 2023 · 0 comments
Open

Pester task validate that Configuration property is missing #416

splatteredbits opened this issue Apr 25, 2023 · 0 comments

Comments

@splatteredbits
Copy link
Member

Run this:

- Pester:
    Run:
        Path:
        - Tests\*.Tests.ps1
        Exit: true
    TestResult:
        Enabled: true
        OutputPath: .\.output\pester5.xml
        TestSuiteName: WhsRivetExtensions
    Output:
        Verbosity: Detailed

and you'll get a very unhelpful error message because everything should be under a Configuration property, like this:

- Pester:
    Configuration:
        Run:
            Path:
            - Tests\*.Tests.ps1
            Exit: true
        TestResult:
            Enabled: true
            OutputPath: .\.output\pester5.xml
            TestSuiteName: WhsRivetExtensions
        Output:
            Verbosity: Detailed

Print out a better error message.```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant