Skip to content

Commit 684fecb

Browse files
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

.github/PULL_REQUEST_TEMPLATE/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/PULL_REQUEST_TEMPLATE/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

ColorScripts-Enhanced/ColorScripts-Enhanced.psd1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
#
44
# Generated by: Nick2bad4u
55
#
6-
# Generated on: 10/26/2025
6+
# Generated on: 10/27/2025
77
#
88

99
@{
1010
# Script module or binary module file associated with this manifest.
1111
RootModule = 'ColorScripts-Enhanced.psm1'
1212

1313
# Version number of this module.
14-
ModuleVersion = '2025.10.26.2132'
14+
ModuleVersion = '2025.10.27.0105'
1515

1616
# Supported PSEditions
1717
CompatiblePSEditions = @('Desktop', 'Core')
@@ -172,7 +172,7 @@ Full documentation: https://github.com/Nick2bad4u/ps-color-scripts-enhanced
172172

173173
# ReleaseNotes of this module
174174
ReleaseNotes = @'
175-
Version 2025.10.26.2132:
175+
Version 2025.10.27.0105:
176176
- Enhanced caching system with OS-wide cache in AppData
177177
- 6-19x performance improvement
178178
- Cache stored in centralized location

ColorScripts-Enhanced/en-US/Add-ColorScriptProfile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
document type: cmdlet
33
external help file: ColorScripts-Enhanced-help.xml
4-
HelpUri: https://github.com/Nick2bad4u/ps-color-scripts-enhanced
4+
HelpUri: https://github.com/Nick2bad4u/PS-Color-Scripts-Enhanced/blob/main/ColorScripts-Enhanced/en-US/Add-ColorScriptProfile.md
55
Locale: en-US
66
Module Name: ColorScripts-Enhanced
77
ms.date: 10/26/2025

ColorScripts-Enhanced/en-US/Build-ColorScriptCache.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
document type: cmdlet
33
external help file: ColorScripts-Enhanced-help.xml
4-
HelpUri: https://github.com/Nick2bad4u/ps-color-scripts-enhanced
4+
HelpUri: https://github.com/Nick2bad4u/PS-Color-Scripts-Enhanced/blob/main/ColorScripts-Enhanced/en-US/Build-ColorScriptCache.md
55
Module Name: ColorScripts-Enhanced
66
ms.date: 10/26/2025
77
PlatyPS schema version: 2024-05-01

ColorScripts-Enhanced/en-US/Clear-ColorScriptCache.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
document type: cmdlet
33
external help file: ColorScripts-Enhanced-help.xml
4-
HelpUri: https://github.com/Nick2bad4u/ps-color-scripts-enhanced
4+
HelpUri: https://github.com/Nick2bad4u/PS-Color-Scripts-Enhanced/blob/main/ColorScripts-Enhanced/en-US/Clear-ColorScriptCache.md
55
Module Name: ColorScripts-Enhanced
66
ms.date: 10/26/2025
77
PlatyPS schema version: 2024-05-01

ColorScripts-Enhanced/en-US/ColorScripts-Enhanced-help.xml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ Add-ColorScriptProfile -Force
214214
<command:relatedLinks>
215215
<maml:navigationLink>
216216
<maml:linkText>Online Version</maml:linkText>
217-
<command:uri>https://github.com/Nick2bad4u/ps-color-scripts-enhanced</command:uri>
217+
<command:uri>https://github.com/Nick2bad4u/PS-Color-Scripts-Enhanced/blob/main/ColorScripts-Enhanced/en-US/Add-ColorScriptProfile.md</command:uri>
218218
</maml:navigationLink>
219219
<maml:navigationLink>
220220
<maml:linkText>Online Version</maml:linkText>
@@ -544,7 +544,7 @@ Get-ColorScriptList | Where-Object Category -eq 'Classic' | Build-ColorScriptCac
544544
<command:relatedLinks>
545545
<maml:navigationLink>
546546
<maml:linkText>Online Version</maml:linkText>
547-
<command:uri>https://github.com/Nick2bad4u/ps-color-scripts-enhanced</command:uri>
547+
<command:uri>https://github.com/Nick2bad4u/PS-Color-Scripts-Enhanced/blob/main/ColorScripts-Enhanced/en-US/Build-ColorScriptCache.md</command:uri>
548548
</maml:navigationLink>
549549
<maml:navigationLink>
550550
<maml:linkText>Show-ColorScript</maml:linkText>
@@ -950,7 +950,7 @@ Clear-ColorScriptCache -Name 'test-*', 'demo-*' -Confirm:$false
950950
<command:relatedLinks>
951951
<maml:navigationLink>
952952
<maml:linkText>Online Version</maml:linkText>
953-
<command:uri>https://github.com/Nick2bad4u/ps-color-scripts-enhanced</command:uri>
953+
<command:uri>https://github.com/Nick2bad4u/PS-Color-Scripts-Enhanced/blob/main/ColorScripts-Enhanced/en-US/Clear-ColorScriptCache.md</command:uri>
954954
</maml:navigationLink>
955955
<maml:navigationLink>
956956
<maml:linkText>Show-ColorScript</maml:linkText>
@@ -1232,7 +1232,7 @@ Write-Host "Total size of all colorscripts: $($totalSize / 1KB) KB"
12321232
<command:relatedLinks>
12331233
<maml:navigationLink>
12341234
<maml:linkText>Online Version</maml:linkText>
1235-
<command:uri>https://github.com/Nick2bad4u/ps-color-scripts-enhanced</command:uri>
1235+
<command:uri>https://github.com/Nick2bad4u/PS-Color-Scripts-Enhanced/blob/main/ColorScripts-Enhanced/en-US/Export-ColorScriptMetadata.md</command:uri>
12361236
</maml:navigationLink>
12371237
<maml:navigationLink>
12381238
<maml:linkText>Build-ColorScriptCache</maml:linkText>
@@ -1247,8 +1247,8 @@ Write-Host "Total size of all colorscripts: $($totalSize / 1KB) KB"
12471247
<command:uri>Clear-ColorScriptCache.md</command:uri>
12481248
</maml:navigationLink>
12491249
<maml:navigationLink>
1250-
<maml:linkText>Invoke-ColorScript</maml:linkText>
1251-
<command:uri>Invoke-ColorScript.md</command:uri>
1250+
<maml:linkText>Show-ColorScript</maml:linkText>
1251+
<command:uri>Show-ColorScript.md</command:uri>
12521252
</maml:navigationLink>
12531253
</command:relatedLinks>
12541254
</command:command>
@@ -1385,7 +1385,7 @@ Get-ColorScriptConfiguration | Format-List *
13851385
<command:relatedLinks>
13861386
<maml:navigationLink>
13871387
<maml:linkText>Online Version</maml:linkText>
1388-
<command:uri>https://github.com/Nick2bad4u/ps-color-scripts-enhanced</command:uri>
1388+
<command:uri>https://github.com/Nick2bad4u/PS-Color-Scripts-Enhanced/blob/main/ColorScripts-Enhanced/en-US/Get-ColorScriptConfiguration.md</command:uri>
13891389
</maml:navigationLink>
13901390
<maml:navigationLink>
13911391
<maml:linkText>Set-ColorScriptConfiguration</maml:linkText>
@@ -1399,10 +1399,6 @@ Get-ColorScriptConfiguration | Format-List *
13991399
<maml:linkText>Show-ColorScript</maml:linkText>
14001400
<command:uri>Show-ColorScript.md</command:uri>
14011401
</maml:navigationLink>
1402-
<maml:navigationLink>
1403-
<maml:linkText>about_ColorScripts_Configuration</maml:linkText>
1404-
<command:uri>about_ColorScripts_Configuration.md</command:uri>
1405-
</maml:navigationLink>
14061402
</command:relatedLinks>
14071403
</command:command>
14081404
<command:command>
@@ -1684,7 +1680,7 @@ Get-ColorScriptList -Name blocks,pipes,matrix -AsObject | ForEach-Object { Show-
16841680
<command:relatedLinks>
16851681
<maml:navigationLink>
16861682
<maml:linkText>Online Version</maml:linkText>
1687-
<command:uri>https://github.com/Nick2bad4u/ps-color-scripts-enhanced</command:uri>
1683+
<command:uri>https://github.com/Nick2bad4u/PS-Color-Scripts-Enhanced/blob/main/ColorScripts-Enhanced/en-US/Get-ColorScriptList.md</command:uri>
16881684
</maml:navigationLink>
16891685
<maml:navigationLink>
16901686
<maml:linkText>Show-ColorScript</maml:linkText>
@@ -2002,7 +1998,7 @@ New-ColorScript -Name 'test-pattern' -OutputPath '.\temp' -WhatIf
20021998
<command:relatedLinks>
20031999
<maml:navigationLink>
20042000
<maml:linkText>Online Version</maml:linkText>
2005-
<command:uri>https://github.com/Nick2bad4u/ps-color-scripts-enhanced</command:uri>
2001+
<command:uri>https://github.com/Nick2bad4u/PS-Color-Scripts-Enhanced/blob/main/ColorScripts-Enhanced/en-US/New-ColorScript.md</command:uri>
20062002
</maml:navigationLink>
20072003
<maml:navigationLink>
20082004
<maml:linkText>Export-ColorScriptMetadata</maml:linkText>
@@ -2215,7 +2211,7 @@ Reset-ColorScriptConfiguration -Verbose
22152211
<command:relatedLinks>
22162212
<maml:navigationLink>
22172213
<maml:linkText>Online Version</maml:linkText>
2218-
<command:uri>https://github.com/Nick2bad4u/ps-color-scripts-enhanced</command:uri>
2214+
<command:uri>https://github.com/Nick2bad4u/PS-Color-Scripts-Enhanced/blob/main/ColorScripts-Enhanced/en-US/Reset-ColorScriptConfiguration.md</command:uri>
22192215
</maml:navigationLink>
22202216
<maml:navigationLink>
22212217
<maml:linkText>Get-ColorScriptConfiguration</maml:linkText>
@@ -2493,7 +2489,7 @@ Set-ColorScriptConfiguration -CachePath '~/.local/share/colorscripts' -DefaultSc
24932489
<command:relatedLinks>
24942490
<maml:navigationLink>
24952491
<maml:linkText>Online Version</maml:linkText>
2496-
<command:uri>https://github.com/Nick2bad4u/ps-color-scripts-enhanced</command:uri>
2492+
<command:uri>https://github.com/Nick2bad4u/PS-Color-Scripts-Enhanced/blob/main/ColorScripts-Enhanced/en-US/Set-ColorScriptConfiguration.md</command:uri>
24972493
</maml:navigationLink>
24982494
<maml:navigationLink>
24992495
<maml:linkText>Get-ColorScriptConfiguration</maml:linkText>
@@ -3002,7 +2998,7 @@ Show-ColorScript -List -Category Art,Abstract
30022998
<command:relatedLinks>
30032999
<maml:navigationLink>
30043000
<maml:linkText>Online Version</maml:linkText>
3005-
<command:uri>https://github.com/Nick2bad4u/ps-color-scripts-enhanced</command:uri>
3001+
<command:uri>https://github.com/Nick2bad4u/PS-Color-Scripts-Enhanced/blob/main/ColorScripts-Enhanced/en-US/Show-ColorScript.md</command:uri>
30063002
</maml:navigationLink>
30073003
<maml:navigationLink>
30083004
<maml:linkText>Get-ColorScriptList</maml:linkText>

ColorScripts-Enhanced/en-US/ColorScripts-Enhanced_f77548d7-23eb-48ce-a6e0-f64b4758d995_HelpInfo.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<SupportedUICultures>
55
<UICulture>
66
<UICultureName>en-US</UICultureName>
7-
<UICultureVersion>2025.10.26.2132</UICultureVersion>
7+
<UICultureVersion>2025.10.27.0105</UICultureVersion>
88
</UICulture>
99
</SupportedUICultures>
1010
</HelpInfo>

ColorScripts-Enhanced/en-US/Export-ColorScriptMetadata.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
document type: cmdlet
33
external help file: ColorScripts-Enhanced-help.xml
4-
HelpUri: https://github.com/Nick2bad4u/ps-color-scripts-enhanced
4+
HelpUri: https://github.com/Nick2bad4u/PS-Color-Scripts-Enhanced/blob/main/ColorScripts-Enhanced/en-US/Export-ColorScriptMetadata.md
55
Module Name: ColorScripts-Enhanced
66
ms.date: 10/26/2025
77
PlatyPS schema version: 2024-05-01
@@ -258,4 +258,4 @@ When `-IncludeCacheInfo` is specified, these additional properties are included:
258258
- [Build-ColorScriptCache](Build-ColorScriptCache.md)
259259
- [Get-ColorScriptList](Get-ColorScriptList.md)
260260
- [Clear-ColorScriptCache](Clear-ColorScriptCache.md)
261-
- [Invoke-ColorScript](Invoke-ColorScript.md)
261+
- [Show-ColorScript](Show-ColorScript.md)

ColorScripts-Enhanced/en-US/Get-ColorScriptConfiguration.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
document type: cmdlet
33
external help file: ColorScripts-Enhanced-help.xml
4-
HelpUri: https://github.com/Nick2bad4u/ps-color-scripts-enhanced
4+
HelpUri: https://github.com/Nick2bad4u/PS-Color-Scripts-Enhanced/blob/main/ColorScripts-Enhanced/en-US/Get-ColorScriptConfiguration.md
55
Module Name: ColorScripts-Enhanced
66
ms.date: 10/26/2025
77
PlatyPS schema version: 2024-05-01
@@ -130,4 +130,3 @@ Returns a nested hashtable containing the following structure:
130130
- [Set-ColorScriptConfiguration](Set-ColorScriptConfiguration.md)
131131
- [Reset-ColorScriptConfiguration](Reset-ColorScriptConfiguration.md)
132132
- [Show-ColorScript](Show-ColorScript.md)
133-
- [about_ColorScripts_Configuration](about_ColorScripts_Configuration.md)

0 commit comments

Comments
 (0)