From d2fefd02e6f6b59ecd1b62c1ec59362676156663 Mon Sep 17 00:00:00 2001 From: Steve Lee Date: Tue, 28 Nov 2017 16:34:04 -0800 Subject: [PATCH] output url so when test fails you can more easily troubleshoot --- test/powershell/Installer/WindowsInstaller.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/powershell/Installer/WindowsInstaller.Tests.ps1 b/test/powershell/Installer/WindowsInstaller.Tests.ps1 index 0084671ab66..759869784a5 100644 --- a/test/powershell/Installer/WindowsInstaller.Tests.ps1 +++ b/test/powershell/Installer/WindowsInstaller.Tests.ps1 @@ -9,13 +9,13 @@ Describe "Windows Installer" -Tags "Scenario" { @{ Name = "WMF 5.1"; Url = "https://www.microsoft.com/download/details.aspx?id=54616" } ) } - + It "WiX (Windows Installer XML) file contains pre-requisites link $preRequisitesLink" { $wixProductFile = Join-Path -Path $PSScriptRoot -ChildPath "..\..\..\assets\Product.wxs" (Get-Content $wixProductFile -Raw).Contains($preRequisitesLink) | Should Be $true } - It "Pre-Requisistes link for '' is reachable" -TestCases $linkCheckTestCases -Test { + It "Pre-Requisistes link for '' is reachable: " -TestCases $linkCheckTestCases -Test { param ($Url) # Because an outdated link 'https://www.microsoft.com/download/details.aspx?id=504100000' would still return a 200 reponse (due to a redirection to an error page), it only checks that it returns something