Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Functions/Coverage.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ InModuleScope Pester {
It 'Reports the correct missed command' {
$coverageReport.MissedCommands[0].Command | Should Be "'I am function two. I never get called.'"
}

Exit-CoverageAnalysis -PesterState $testState
}

Context 'Single function with missed commands' {
Expand Down Expand Up @@ -92,6 +94,8 @@ InModuleScope Pester {
It 'Reports the correct missed command' {
$coverageReport.MissedCommands[0].Command | Should Be "'I am function two. I never get called.'"
}

Exit-CoverageAnalysis -PesterState $testState
}

Context 'Single function with no missed commands' {
Expand All @@ -117,6 +121,8 @@ InModuleScope Pester {
It 'Reports the proper number of missed commands' {
$coverageReport.MissedCommands.Count | Should Be 0
}

Exit-CoverageAnalysis -PesterState $testState
}

Context 'Range of lines' {
Expand All @@ -142,6 +148,8 @@ InModuleScope Pester {
It 'Reports the proper number of missed commands' {
$coverageReport.MissedCommands.Count | Should Be 0
}

Exit-CoverageAnalysis -PesterState $testState
}

Context 'Wildcard resolution' {
Expand Down Expand Up @@ -175,6 +183,8 @@ InModuleScope Pester {
It 'Reports the correct missed command' {
$coverageReport.MissedCommands[0].Command | Should Be "'I am function two. I never get called.'"
}

Exit-CoverageAnalysis -PesterState $testState
}
}
}