Commit 684fecb
committed
🧪 [test] Add extensive tests to boost code coverage
🧪 [test] Introduces a comprehensive new Pester test suite (`CoverageExpansion.Tests.ps1`) to significantly increase code coverage and validate the behavior of core cmdlets under various conditions.
- Adds detailed tests for `Show-ColorScript`, `Clear-ColorScriptCache`, `Get-ColorScriptMetadataTable`, and `Export-ColorScriptMetadata`.
- Employs extensive mocking and a sandboxed test environment to isolate tests and cover edge cases, error conditions, and parameter combinations.
- Validates caching logic, fallback mechanisms, filtering, interactive features (`-WaitForInput`), and error handling.
- Adds a new `Invoke-Coverage.ps1` script to simplify running Pester tests with coverage enabled.
📝 [docs] Updates and corrects the external help documentation.
- Updates the `HelpUri` in all markdown and XML help files to point directly to the specific command's documentation file on GitHub.
- Corrects an invalid related link from `Invoke-ColorScript` to `Show-ColorScript`.
- Removes a stale link to a non-existent `about_` topic.
🧹 [chore] Performs routine repository and module maintenance.
- Removes unused `bug_report.md` and `feature_request.md` issue templates from the `.github` directory.
- Increments the module version to `2025.10.27.0105` and updates the corresponding release notes and help file version info.
- Updates generated release note files.
Signed-off-by: Nick2bad4u <20943337+Nick2bad4u@users.noreply.github.com>1 parent 9c540a3 commit 684fecb
19 files changed
Lines changed: 1191 additions & 245 deletions
File tree
- .github/PULL_REQUEST_TEMPLATE/ISSUE_TEMPLATE
- ColorScripts-Enhanced
- en-US
- Tests
- dist
- scripts
Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 0 additions & 19 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
Lines changed: 12 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
547 | | - | |
| 547 | + | |
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
| |||
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
953 | | - | |
| 953 | + | |
954 | 954 | | |
955 | 955 | | |
956 | 956 | | |
| |||
1232 | 1232 | | |
1233 | 1233 | | |
1234 | 1234 | | |
1235 | | - | |
| 1235 | + | |
1236 | 1236 | | |
1237 | 1237 | | |
1238 | 1238 | | |
| |||
1247 | 1247 | | |
1248 | 1248 | | |
1249 | 1249 | | |
1250 | | - | |
1251 | | - | |
| 1250 | + | |
| 1251 | + | |
1252 | 1252 | | |
1253 | 1253 | | |
1254 | 1254 | | |
| |||
1385 | 1385 | | |
1386 | 1386 | | |
1387 | 1387 | | |
1388 | | - | |
| 1388 | + | |
1389 | 1389 | | |
1390 | 1390 | | |
1391 | 1391 | | |
| |||
1399 | 1399 | | |
1400 | 1400 | | |
1401 | 1401 | | |
1402 | | - | |
1403 | | - | |
1404 | | - | |
1405 | | - | |
1406 | 1402 | | |
1407 | 1403 | | |
1408 | 1404 | | |
| |||
1684 | 1680 | | |
1685 | 1681 | | |
1686 | 1682 | | |
1687 | | - | |
| 1683 | + | |
1688 | 1684 | | |
1689 | 1685 | | |
1690 | 1686 | | |
| |||
2002 | 1998 | | |
2003 | 1999 | | |
2004 | 2000 | | |
2005 | | - | |
| 2001 | + | |
2006 | 2002 | | |
2007 | 2003 | | |
2008 | 2004 | | |
| |||
2215 | 2211 | | |
2216 | 2212 | | |
2217 | 2213 | | |
2218 | | - | |
| 2214 | + | |
2219 | 2215 | | |
2220 | 2216 | | |
2221 | 2217 | | |
| |||
2493 | 2489 | | |
2494 | 2490 | | |
2495 | 2491 | | |
2496 | | - | |
| 2492 | + | |
2497 | 2493 | | |
2498 | 2494 | | |
2499 | 2495 | | |
| |||
3002 | 2998 | | |
3003 | 2999 | | |
3004 | 3000 | | |
3005 | | - | |
| 3001 | + | |
3006 | 3002 | | |
3007 | 3003 | | |
3008 | 3004 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
0 commit comments