Skip to content

Commit

Permalink
Resolve Selenium WebDriver DLL path regardless of its version
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuBuisson committed Oct 6, 2017
1 parent 0d1c10b commit db2b4a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tests/Integration/HtmlReport.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ $ModuleName = 'PSCodeHealth'
Import-Module "$PSScriptRoot\..\..\$ModuleName\$($ModuleName).psd1" -Force
$CodePath = "$PSScriptRoot\..\TestData\coveralls"
$ReportPath = "$($env:TEMP)\Report.html"
Add-Type -Path 'C:\Program Files\PackageManagement\NuGet\Packages\Selenium.WebDriver.3.4.0\lib\net40\WebDriver.dll'
$DllPattern = 'C:\Program Files\PackageManagement\NuGet\Packages\*\lib\net40\WebDriver.dll'
$DllPath = (Get-ChildItem -Path $DllPattern | Select-Object -First 1).FullName
Add-Type -Path $DllPath

Describe 'Invoke-PSCodeHealth HTML report' {

Expand Down

0 comments on commit db2b4a9

Please sign in to comment.