Skip to content

Commit

Permalink
Enable RDP to the Appveyor build agent to search where Selenium files…
Browse files Browse the repository at this point in the history
… are
  • Loading branch information
MathieuBuisson committed Jul 15, 2017
1 parent 5a4bf52 commit 8eaa2d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Tests/Integration/HtmlReport.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
$ModuleName = 'PSCodeHealth'
Import-Module "$PSScriptRoot\..\..\$ModuleName\$($ModuleName).psd1" -Force
$CodePath = "$PSScriptRoot\..\TestData\coveralls"
$ReportPath = "$($env:TEMP)\Report.html"

Describe 'Invoke-PSCodeHealth' {

$ReportPath = "$TestDrive\Report.html"
Invoke-PSCodeHealth -Path $CodePath -HtmlReportPath $ReportPath
$ReportContent = Get-Content -Path $ReportPath -Raw
$ExpectedFunctionNames = @('Add-CoverageInfo','Merge-CoverageResult','Get-CoverageArray','Format-FileCoverage','Get-CommandsForFile','Get-GitInfo','Format-Coverage','Publish-Coverage','Get-CoveragePercentage')
Expand Down Expand Up @@ -116,4 +116,10 @@ Describe 'Invoke-PSCodeHealth' {
$ReportContent | Should Match '(?smi)(<td>Get-CoveragePercentage</td>.+<td class="success">100</td>.+<td class="success">0</td>.+\s+</tr>)'
}
}
}
Describe 'Web UI' {

Context 'Given code in coveralls module, the HTML report responds to interactions as expected' {

}
}
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ before_build:
- ps: Import-Module InvokeBuild

build_script:
- ps: $blockRdp = $True; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
- ps: Invoke-Build

0 comments on commit 8eaa2d7

Please sign in to comment.