Skip to content

Commit 56b32f9

Browse files
authored
Merge branch 'develop' into feature/133-100-code-coverage
2 parents 2d98dc6 + 36148d7 commit 56b32f9

2 files changed

Lines changed: 2 additions & 26 deletions

File tree

project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"ProjectName": "NovaModuleTools",
33
"Description": "NovaModuleTools is an enterprise-focused evolution of ModuleTools, designed for large-scale PowerShell projects with a strong emphasis on structure, maintainability, and automated CI/CD pipelines.",
4-
"Version": "2.0.0-preview9918",
4+
"Version": "2.0.0-preview9919",
55
"Preamble": [
66
"Set-StrictMode -Version Latest",
77
"$ErrorActionPreference = 'Stop'"

tests/RemainingHelperCoverage.Tests.ps1

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -451,20 +451,11 @@ Describe 'Coverage for remaining manifest, JSON, and help-locale helpers' {
451451
It 'Get-NovaPackageAuthorList normalizes string and enumerable author values' {
452452
InModuleScope $script:moduleName {
453453
@(Get-NovaPackageAuthorList -AuthorValue $null) | Should -Be @()
454-
@(Get-NovaPackageAuthorList -AuthorValue ' ') | Should -Be @()
455454
@(Get-NovaPackageAuthorList -AuthorValue ' Nova Author ') | Should -Be @('Nova Author')
456455
@(Get-NovaPackageAuthorList -AuthorValue @(' Author A ', 'Author B', 'Author A', ' ')) | Should -Be @('Author A', 'Author B')
457456
}
458457
}
459458

460-
It 'Get-NovaManifestValue reads dictionaries, objects, and returns null for missing object properties' {
461-
InModuleScope $script:moduleName {
462-
Get-NovaManifestValue -Manifest @{Author = 'Dictionary Author'} -Name 'Author' | Should -Be 'Dictionary Author'
463-
Get-NovaManifestValue -Manifest ([pscustomobject]@{Author = 'Object Author'}) -Name 'Author' | Should -Be 'Object Author'
464-
Get-NovaManifestValue -Manifest ([pscustomobject]@{Author = 'Object Author'}) -Name 'Tags' | Should -BeNullOrEmpty
465-
}
466-
}
467-
468459
It 'Get-NovaPackageAuthorList rejects unsupported author value types' {
469460
InModuleScope $script:moduleName {
470461
$thrown = $null
@@ -650,7 +641,7 @@ Describe 'Coverage for remaining manifest, JSON, and help-locale helpers' {
650641
Get-NovaPackageArtifactType -PackagePath '/tmp/Nova.Package.nupkg' | Should -Be 'NuGet'
651642
Get-NovaPackageArtifactType -PackagePath '/tmp/Nova.Package.zip' | Should -Be 'Zip'
652643

653-
foreach ($packagePath in @('/tmp/package', '/tmp/Nova.Package', '/tmp/Nova.Package.tar.gz')) {
644+
foreach ($packagePath in @('/tmp/Nova.Package', '/tmp/Nova.Package.tar.gz')) {
654645
$thrown = $null
655646
try {
656647
Get-NovaPackageArtifactType -PackagePath $packagePath
@@ -665,21 +656,6 @@ Describe 'Coverage for remaining manifest, JSON, and help-locale helpers' {
665656
}
666657
}
667658

668-
It 'New-NovaPackageArtifacts returns an empty list when no package metadata was requested' {
669-
InModuleScope $script:moduleName {
670-
Mock Assert-NovaPackageMetadata {}
671-
Mock Initialize-NovaPackageOutputDirectory {}
672-
Mock New-NovaPackageArtifact {}
673-
674-
$result = @(New-NovaPackageArtifacts -ProjectInfo ([pscustomobject]@{ProjectName = 'NovaModuleTools'}) -PackageMetadataList @())
675-
676-
$result | Should -Be @()
677-
Assert-MockCalled Assert-NovaPackageMetadata -Times 0
678-
Assert-MockCalled Initialize-NovaPackageOutputDirectory -Times 0
679-
Assert-MockCalled New-NovaPackageArtifact -Times 0
680-
}
681-
}
682-
683659
It 'Get-NovaPackageOutputDirectory returns rooted paths unchanged and resolves relative paths from the project root' {
684660
InModuleScope $script:moduleName {
685661
$relativeProject = [pscustomobject]@{ProjectRoot = '/tmp/project'; Package = [pscustomobject]@{OutputDirectory = [pscustomobject]@{Path = 'artifacts/packages'}}}

0 commit comments

Comments
 (0)