Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Sample powershell script (V4.0) for executing javascript tests with chutzpah runner.
$chutzpahPath = (Join-Path -Path $PSScriptRoot -ChildPath "Chutzpah.3.2.1\chutzpah.console.exe").ToString()
If(-not (Test-Path($chutzpahPath)))
Write-Error "Cannot find chutzpath"
$testPath = Join-Path -Path $PSScriptRoot -ChildPath "..\WebApplication1.Tests"
If(-not (Test-Path($testPath)))
Write-Error "Cannot find test path"
Write-Host "Executing chutzpah..."
$expression = "& `"$chutzpahPath`" /path `"$testPath`" /coverage /teamcity /timeoutMilliseconds 60000 /failOnError"
Exec{Invoke-Expression $expression}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.