You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
29
29
-`New-NovaModulePackage` now shows progress for build validation and artifact creation, ends with the package target plus the next suggested deployment step, and uses a package-plan summary in `-WhatIf` mode.
30
30
-`Publish-NovaModule` now shows progress for build validation, publish, local import, and CI restore phases, ends with the publish target plus a suggested verification step, and uses a publish-plan summary in `-WhatIf` mode.
31
31
-`Set-NovaUpdateNotificationPreference` now ends with a clear success or preview summary, prints the settings file path, suggests `Get-NovaUpdateNotificationPreference` as the next verification step, and gives a more actionable validation error when no enable/disable switch is supplied.
32
+
-`Test-NovaBuild` now shows progress across the main test phases, ends with the result file path plus a coverage summary and next-step hint when tests pass, uses a test-plan summary in `-WhatIf` mode, and fails with more actionable guidance when Pester or coverage checks fail.
Copy file name to clipboardExpand all lines: RELEASE_NOTE.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ This file summarizes the release notes for NovaModuleTools. **UNRELEASED** chang
25
25
-`New-NovaModulePackage` now shows progress for build validation and artifact creation, ends with the package target plus the next suggested deployment step, and uses a package-plan summary in `-WhatIf` mode.
26
26
-`Publish-NovaModule` now shows progress for build validation, publish, local import, and CI restore phases, ends with the publish target plus a suggested verification step, and uses a publish-plan summary in `-WhatIf` mode.
27
27
-`Set-NovaUpdateNotificationPreference` now ends with a clear success or preview summary, prints the settings file path, suggests `Get-NovaUpdateNotificationPreference` as the next verification step, and gives a more actionable validation error when no enable/disable switch is supplied.
28
+
-`Test-NovaBuild` now shows progress across the main test phases, ends with the result file path plus a coverage summary and next-step hint when tests pass, uses a test-plan summary in `-WhatIf` mode, and fails with more actionable guidance when Pester or coverage checks fail.
Copy file name to clipboardExpand all lines: docs/NovaModuleTools/en-US/Test-NovaBuild.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,8 @@ With the default
40
40
41
41
This command supports `-WhatIf` and `-Confirm` through PowerShell `SupportsShouldProcess`. Use `-WhatIf` to preview the planned test run and XML output path without creating `artifacts/` or invoking Pester.
42
42
43
+
During a test run, Nova shows progress for the optional pre-test build, test-result preparation, the Pester run, result writing, and code-coverage validation. When tests pass, Nova prints the result file path, a coverage summary when one is available, and a suggested next step. In `-WhatIf` mode, Nova ends with a test-plan summary instead of invoking Pester.
44
+
43
45
## EXAMPLES
44
46
45
47
### EXAMPLE 1
@@ -48,15 +50,15 @@ This command supports `-WhatIf` and `-Confirm` through PowerShell `SupportsShoul
48
50
PS> Test-NovaBuild
49
51
```
50
52
51
-
Runs the Pester tests for the current project.
53
+
Runs the Pester tests for the current project and prints the result file path plus the next suggested command when the run succeeds.
52
54
53
55
### EXAMPLE 2
54
56
55
57
```text
56
58
PS> Test-NovaBuild -Build
57
59
```
58
60
59
-
Builds the project first, then runs the configured Pester test workflow.
61
+
Builds the project first, then runs the configured Pester test workflow with the same completion summary as a normal test run.
60
62
61
63
### EXAMPLE 3
62
64
@@ -88,15 +90,15 @@ Overrides the console output settings for the current test run while keeping col
88
90
PS> Test-NovaBuild -WhatIf
89
91
```
90
92
91
-
Previews the planned Pester run without executing tests or writing`artifacts/TestResults.xml`.
93
+
Previews the planned Pester run, prints the planned result file path, and does not execute tests or write`artifacts/TestResults.xml`.
92
94
93
95
### EXAMPLE 7
94
96
95
97
```text
96
98
PS> Test-NovaBuild -Build -WhatIf
97
99
```
98
100
99
-
Previews the build-before-test workflow without rebuilding the project or running Pester.
101
+
Previews the build-before-test workflow, including the planned result file path and configured coverage target, without rebuilding the project or running Pester.
100
102
101
103
## PARAMETERS
102
104
@@ -258,6 +260,8 @@ If `project.json` configures `Pester.CodeCoverage.CoveragePercentTarget`, `Test-
258
260
`Test-NovaBuild`uses `SupportsShouldProcess`, so `Get-Help Test-NovaBuild -Full` surfaces native `-WhatIf` and
259
261
`-Confirm`support.
260
262
263
+
Use `Ctrl+C` if you need to stop a running test workflow before Pester completes.
return"Pester reported one or more failing tests. Review the output above and the test result file at $($WorkflowContext.TestResultPath), then rerun Test-NovaBuild."
if ($null-eq$coveragePercent-or [string]::IsNullOrWhiteSpace([string]$coveragePercent)) {
132
-
$exception= [System.IO.InvalidDataException]::new("Code coverage target $formattedTarget% is configured, but the Pester result did not include a coverage percentage.")
323
+
$exception= [System.IO.InvalidDataException]::new("Code coverage target $formattedTarget% is configured, but the Pester result did not include a coverage percentage. Review the coverage settings in project.json and the test result file at $resolvedTargetObject.")
$exception= [System.InvalidOperationException]::new("Code coverage $formattedCoverage% did not meet the configured target $formattedTarget%.")
334
+
$exception= [System.InvalidOperationException]::new("Code coverage $formattedCoverage% did not meet the configured target $formattedTarget%. Review the failing tests or coverage settings, then rerun Test-NovaBuild.")
0 commit comments