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

RuntimeExceptions for invalid output configuration doesn't kill the run #2304

Closed
3 tasks done
fflaten opened this issue Feb 13, 2023 · 0 comments · Fixed by #2317
Closed
3 tasks done

RuntimeExceptions for invalid output configuration doesn't kill the run #2304

fflaten opened this issue Feb 13, 2023 · 0 comments · Fixed by #2317

Comments

@fflaten
Copy link
Collaborator

fflaten commented Feb 13, 2023

Checklist

What is the issue?

When an invalid value is set in output-related configuration options like Output.CIFormat, an exception is called once per failed test/block.

image

Expected Behavior

Even though the current behavior would allow a successful run to execute, we should move this validation earlier and kill the run as all errors will be unreadable anyways.

Steps To Reproduce

No response

Describe your environment

Pester version : 5.4.0 /workspaces/Pester/bin/Pester.psm1
PowerShell version : 7.2.6
OS version : Unix 5.15.79.1

Possible Solution?

Move validation for output-options to Start-step?

fflaten added a commit to fflaten/Pester that referenced this issue Mar 4, 2023
fflaten added a commit to fflaten/Pester that referenced this issue May 14, 2023
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

Successfully merging a pull request may close this issue.

1 participant