Skip to content

Commit

Permalink
Fix Tests by ensureing that the environment is setup correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
lipkau committed Sep 27, 2017
1 parent 7c2357c commit 54bfb49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions JiraPS.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ task TestPS5 {

# Synopsis: Invoke Pester Tests
task PesterTests {
# Ensure expected environment
Remove-Module JiraPS -ErrorAction SilentlyContinue
$global:SuppressImportModule = $false

try {
$result = Invoke-Pester -PassThru -OutputFile $BuildRoot\TestResult.xml
if ($env:APPVEYOR_PROJECT_NAME) {
Expand Down

0 comments on commit 54bfb49

Please sign in to comment.