File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed
Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff 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}
151121else {
You can’t perform that action at this time.
0 commit comments