Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created April 29, 2016 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/2e614ff450a138ace65f0ef706972a85 to your computer and use it in GitHub Desktop.
Save justinyoo/2e614ff450a138ace65f0ef706972a85 to your computer and use it in GitHub Desktop.
Azure DevOps Series
$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