Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2015
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. $VerbosePreference = "Continue"
  2.  
  3. $projects = Get-ChildItem -Path $PSScriptRoot\test -Filter project.json -recurse
  4.  
  5. [int]$errors = 0
  6.  
  7. foreach($project in $projects)
  8. {
  9. dnx $project.DirectoryName test 2>&1
  10. $errors = $errors + $lastexitcode
  11. }
  12.  
  13. if($errors -gt 0)
  14. {
  15. Throw "Some tests have failed"
  16. }
  17.  
  18. exit $errors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement