Skip to content

Commit 969f2e0

Browse files
committed
Update Build-Module.ps1
1 parent 5338a4d commit 969f2e0

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

CI/Build-Module.ps1

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -115,37 +115,7 @@ if($TestsResult.FailedCount -eq 0){
115115
Update-ModuleManifest -Path $Manifest -FunctionsToExport $FunctionsToExport -ModuleVersion $ModuleVersion
116116

117117
Write-Host "[BUILD] [END ] [PSD1] building Manifest" -ForegroundColor Green
118-
#endregion
119-
120-
#region General Module-Tests
121-
Describe 'General module control' -Tags 'FunctionalQuality' {
122-
123-
It "Import $ModuleName without errors" {
124-
{ Import-Module -Name $Manifest -Force -ErrorAction Stop } | Should -Not Throw
125-
Get-Module $ModuleName | Should -Not -BeNullOrEmpty
126-
}
127-
128-
It "Get-Command $ModuleName without errors" {
129-
{ Get-Command -Module $ModuleName -ErrorAction Stop } | Should -Not Throw
130-
Get-Command -Module $ModuleName | Should -Not -BeNullOrEmpty
131-
}
132118

133-
$FunctionsToExport | ForEach-Object {
134-
$functionname = $_
135-
It "Get-Command -Module $ModuleName should include Function $($functionname)" {
136-
Get-Command -Module $ModuleName | ForEach-Object {
137-
{if($functionname -match $_.Name){$true}else{$false}} | should -BeTrue
138-
}
139-
}
140-
}
141-
142-
It "Removes $ModuleName without error" {
143-
{ Remove-Module -Name $ModuleName -ErrorAction Stop} | Should -Not Throw
144-
Get-Module $ModuleName | Should beNullOrEmpty
145-
}
146-
147-
}
148-
#endregion
149119
Write-Host "[BUILD] [END] Launching Build Process" -ForegroundColor Green
150120
}
151121
else{

0 commit comments

Comments
 (0)