Skip to content

Fix #2682: Auto-enable TestResult/CodeCoverage when non-default options are set#2710

Merged
nohwnd merged 1 commit into
mainfrom
fix/2682-auto-enable-output-options
Jun 16, 2026
Merged

Fix #2682: Auto-enable TestResult/CodeCoverage when non-default options are set#2710
nohwnd merged 1 commit into
mainfrom
fix/2682-auto-enable-output-options

Conversation

@nohwnd

@nohwnd nohwnd commented Jun 16, 2026

Copy link
Copy Markdown
Member

Fixes #2682

A common stumbling block is setting CodeCoverage.Path or TestResult.OutputPath without also setting Enabled = $true. This fix auto-enables these features when any of their options are set to non-default values, unless Enabled is explicitly set to $false.

@nohwnd nohwnd marked this pull request as draft June 16, 2026 16:49
Comment thread src/Main.ps1 Fixed
…ns are set

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@nohwnd nohwnd force-pushed the fix/2682-auto-enable-output-options branch from b11609d to 17fafc6 Compare June 16, 2026 18:34
@nohwnd nohwnd marked this pull request as ready for review June 16, 2026 19:46
@nohwnd nohwnd merged commit 2d741ae into main Jun 16, 2026
13 checks passed
@nohwnd nohwnd deleted the fix/2682-auto-enable-output-options branch June 16, 2026 19:46
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 this pull request may close these issues.

setting any option to non default on testResult or code coverage should enable them

2 participants