-
-
Save justinyoo/2e614ff450a138ace65f0ef706972a85 to your computer and use it in GitHub Desktop.
Azure DevOps Series
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ChutzpahVersion = "4.2.1" | |
# Gets the Chutzpah test runner path. | |
$chutzpah = "$env:USERPROFILE\.dnx\packages\Chutzpah\$ChutzpahVersion\tools\chutzpah.console.exe" | |
# Builds ASP.NET Core projects only. | |
$projects = Get-ChildItem .\test | ?{$_.PsIsContainer} | ?{ Test-Path (Join-Path $_.FullName "project.json") } | ?{ Test-Path (Join-Path $_.FullName "package.json") } | |
foreach($project in $projects) | |
{ | |
Write-Host "Testing $($project.Name)..." -ForegroundColor Green | |
$jss = Get-ChildItem "$($project.FullName)\spec\javascripts\*.js" | |
foreach($js in $jss) | |
{ | |
Write-Host "Testing $($js)..." -ForegroundColor Green | |
& $chutzpah /path $js | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment