Skip to content

Commit 640caef

Browse files
Gilbert SanchezHeyItsGilbert
authored andcommitted
chore(CHANGELOG): ✏️ update changelog for version 0.2.0
* Documented the addition of Pester result breakdown to the title panel. * Updated the version date to 2025-05-28.
1 parent 46d84a1 commit 640caef

File tree

4 files changed

+33
-24
lines changed

4 files changed

+33
-24
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8-
## Unreleased
8+
## [0.2.0] 2025-05-28
99

1010
### Added
1111

1212
- Added comment based help on private functions to make it easier for new
1313
contributors to grok.
14+
- Added Pester result breakdown to title panel.
1415

1516
### Changed
1617

PesterExplorer/PesterExplorer.psd1

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,25 @@
1212
RootModule = 'PesterExplorer.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '0.1.0'
15+
ModuleVersion = '0.2.0'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()
1919

2020
# ID used to uniquely identify this module
21-
GUID = '1b8311c2-23fd-4a4c-90de-e17cfc306b04'
21+
GUID = '1b8311c2-23fd-4a4c-90de-e17cfc306b04'
2222

2323
# Author of this module
24-
Author = 'Gilbert Sanchez'
24+
Author = 'Gilbert Sanchez'
2525

2626
# Company or vendor of this module
27-
CompanyName = 'HeyItsGilbert'
27+
CompanyName = 'HeyItsGilbert'
2828

2929
# Copyright statement for this module
30-
Copyright = '(c) Gilbert Sanchez. All rights reserved.'
30+
Copyright = '(c) Gilbert Sanchez. All rights reserved.'
3131

3232
# Description of the functionality provided by this module
33-
Description = 'A TUI to explore Pester results.'
33+
Description = 'A TUI to explore Pester results.'
3434

3535
# Minimum version of the PowerShell engine required by this module
3636
PowerShellVersion = '7.0'
@@ -51,13 +51,13 @@
5151
# ProcessorArchitecture = ''
5252

5353
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(
54+
RequiredModules = @(
5555
@{
56-
ModuleName = 'Pester'
56+
ModuleName = 'Pester'
5757
ModuleVersion = '5.0.0'
5858
},
5959
@{
60-
ModuleName = 'PwshSpectreConsole'
60+
ModuleName = 'PwshSpectreConsole'
6161
ModuleVersion = '2.3.0'
6262
}
6363
)
@@ -81,13 +81,13 @@
8181
FunctionsToExport = '*'
8282

8383
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
84-
CmdletsToExport = '*'
84+
CmdletsToExport = '*'
8585

8686
# Variables to export from this module
8787
VariablesToExport = '*'
8888

8989
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
90-
AliasesToExport = '*'
90+
AliasesToExport = '*'
9191

9292
# DSC resources to export from this module
9393
# DscResourcesToExport = @()
@@ -99,12 +99,12 @@
9999
# FileList = @()
100100

101101
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
102-
PrivateData = @{
102+
PrivateData = @{
103103

104104
PSData = @{
105105

106106
# Tags applied to this module. These help with module discovery in online galleries.
107-
Tags = @(
107+
Tags = @(
108108
'Windows',
109109
'Linux',
110110
'macOS',
@@ -116,13 +116,13 @@
116116
)
117117

118118
# A URL to the license for this module.
119-
LicenseUri = 'https://github.com/HeyItsGilbert/PesterExplorer/blob/main/LICENSE'
119+
LicenseUri = 'https://github.com/HeyItsGilbert/PesterExplorer/blob/main/LICENSE'
120120

121121
# A URL to the main website for this project.
122-
ProjectUri = 'https://github.com/HeyItsGilbert/PesterExplorer'
122+
ProjectUri = 'https://github.com/HeyItsGilbert/PesterExplorer'
123123

124124
# A URL to an icon representing this module.
125-
IconUri = 'https://raw.githubusercontent.com/HeyItsGilbert/PesterExplorer/main/images/icon.png'
125+
IconUri = 'http://raw.githubusercontent.com/HeyItsGilbert/PesterExplorer/main/images/icon.png'
126126

127127
# ReleaseNotes of this module
128128
ReleaseNotes = 'https://github.com/HeyItsGilbert/PesterExplorer/blob/main/CHANGELOG.md'

PesterExplorer/Private/Format-PesterObjectName.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function Format-PesterObjectName {
3232
$NoColor
3333
)
3434
process {
35-
$type = $Object.GetType().Name
35+
$type = $Object.GetType().ToString()
3636
$name = $Object.Name
3737
if ($null -eq $name) {
3838
$name = $type | Get-SpectreEscapedText

PesterExplorer/Private/Get-TitlePanel.ps1

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,24 @@ function Get-TitlePanel {
2727
param(
2828
$Item
2929
)
30-
# TODO: HeyItsGilbert/PesterExplorer#4 Add More info!
31-
$titles = @(
32-
"Pester Explorer - [gray]$(Get-Date)[/]"
33-
)
30+
$rows = @()
31+
$title = "Pester Explorer - [gray]$(Get-Date)[/]"
3432
if($null -ne $Item){
3533
$objectName = Format-PesterObjectName -Object $Item
3634
# Print what type it is and it's formatted name.
37-
$titles += "$($Item.GetType().Name): $($objectName)"
35+
$title += " | $($Item.GetType().Name): $($objectName)"
3836
}
39-
return $titles | Format-SpectreRows |
37+
$rows += $title
38+
#region Breakdown
39+
$data = @()
40+
$data += New-SpectreChartItem -Label "Passed" -Value ($Item.PassedCount) -Color "Green"
41+
$data += New-SpectreChartItem -Label "Inconclusive" -Value ($Item.InconclusiveCount) -Color "Grey"
42+
$data += New-SpectreChartItem -Label "Skipped" -Value ($Item.SkippedCount) -Color "Yellow"
43+
$data += New-SpectreChartItem -Label "Failed" -Value ($Item.FailedCount) -Color "Red"
44+
$rows += Format-SpectreBreakdownChart -Data $data -ShowPercentage
45+
#endregion Breakdown
46+
47+
return $rows | Format-SpectreRows |
4048
Format-SpectreAligned -HorizontalAlignment Center -VerticalAlignment Middle |
4149
Format-SpectrePanel -Expand
4250
}

0 commit comments

Comments
 (0)