Skip to content

Commit 596dbfc

Browse files
committed
Add pester tests step
1 parent 1270998 commit 596dbfc

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

appveyor.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
install:
2-
- ps: write-output "installing sublime text 3"
2+
- ps: write-host -ForegroundColor Yellow "installing sublime text 3"
33
- ps: start-filedownload "http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%20Build%203059%20x64.zip"
4-
- ps: write-output "installing Sublime%20Text%20Build%203059%20x64.zip"
4+
- ps: write-host -ForegroundColor Yellow "installing Sublime%20Text%20Build%203059%20x64.zip"
55
- ps: 7z.exe x "Sublime%20Text%20Build%203059%20x64.zip" -o"C:\st" > $null
66
- ps: mkdir "C:\st\Data\Packages" -force > $null
77
- ps: mkdir "C:\st\Data\Packages\PowerShell" -force > $null
88
- ps: cp -Recurse * "C:\st\Data\Packages\PowerShell" -Force
99
- ps: git clone -q --branch=master https://github.com/my-personal-forks/UnitTesting.git "C:\st\Data\Packages\UnitTesting"
10-
- ps: write-output "installing pester"
10+
- ps: write-host -ForegroundColor Yellow "installing pester" -
1111
- ps: cinst pester
1212

1313
build: false
1414

1515
test_script:
16-
- ps: C:\st\Data\Packages\UnitTesting\sbin\run.ps1 "PowerShell"
16+
- ps: write-host -ForegroundColor Yellow "Run python tests"
17+
- ps: C:\st\Data\Packages\UnitTesting\sbin\run.ps1 "PowerShell"
18+
- ps: write-host -ForegroundColor Yellow "Run pester tests"
19+
- ps: $res = Invoke-Pester -OutputFormat NUnitXml -OutputFile TestsResults.xml -PassThru
20+
- ps: (New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\TestsResults.xml))
21+
- ps: if ($res.FailedCount -gt 0) { throw "$($res.FailedCount) tests failed."}

0 commit comments

Comments
 (0)