From 81b3e6b83f89225516beee342b113888b52e961b Mon Sep 17 00:00:00 2001 From: Nate Barbettini Date: Fri, 19 Feb 2016 15:13:58 -0800 Subject: [PATCH] Test script should fail if tests fail --- script/test.ps1 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/script/test.ps1 b/script/test.ps1 index e2da36a..874771b 100644 --- a/script/test.ps1 +++ b/script/test.ps1 @@ -1,5 +1,18 @@ +$exitCode = 0 + dnx -p test\Microsoft.Extensions.Configuration.Contrib.Stormpath.EnvironmentVariables.Test test +$exitCode = $LASTEXITCODE + dnx -p test\Microsoft.Extensions.Configuration.Contrib.Stormpath.ObjectReflection.Test test +$exitCode = $LASTEXITCODE + dnx -p test\Microsoft.Extensions.Configuration.Contrib.Stormpath.PropertiesFile.Test test +$exitCode = $LASTEXITCODE + dnx -p test\Microsoft.Extensions.Configuration.Contrib.Stormpath.Yaml.Test test +$exitCode = $LASTEXITCODE + dnx -p test\Stormpath.Configuration.Test test +$exitCode = $LASTEXITCODE + +return $exitCode