Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $VerbosePreference = "Continue"
- $projects = Get-ChildItem -Path $PSScriptRoot\test -Filter project.json -recurse
- [int]$errors = 0
- foreach($project in $projects)
- {
- dnx $project.DirectoryName test 2>&1
- $errors = $errors + $lastexitcode
- }
- if($errors -gt 0)
- {
- Throw "Some tests have failed"
- }
- exit $errors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement