diff --git a/build/publish_core_package.ps1 b/build/publish_core_package.ps1 index f9946f98f..840c20d0d 100644 --- a/build/publish_core_package.ps1 +++ b/build/publish_core_package.ps1 @@ -83,7 +83,7 @@ if($BuildAndTest){ Write-Output "Compilation failed. Aborting script." exit 1 } - dotnet test -f $NET_CORE_VER + dotnet test $TEST_PATH -f $NET_CORE_VER if ($LASTEXITCODE -ne 0) { Write-Output "Some of the unit test failed. Aborting script." exit 1 diff --git a/build/publish_framework_package.ps1 b/build/publish_framework_package.ps1 index ff1d1737a..98cd92bcd 100644 --- a/build/publish_framework_package.ps1 +++ b/build/publish_framework_package.ps1 @@ -124,7 +124,7 @@ if($BuildAndTest){ RemoveSensitiveData exit 1 } - dotnet test -f $NET_FRAMEWORK_VER --verbosity normal + dotnet test $TEST_PATH -f $NET_FRAMEWORK_VER --verbosity normal if ($LASTEXITCODE -ne 0) { Write-Output "Some of the unit tests failed. Aborting script." RemoveSensitiveData diff --git a/build/variables.ps1 b/build/variables.ps1 index 0ae573f1a..05ef3a343 100644 --- a/build/variables.ps1 +++ b/build/variables.ps1 @@ -17,3 +17,4 @@ $NET_FRAMEWORK_VER="net45" $FRAMEWORK_PDB_PATH=$FRAMEWORK_PROJ_DIR + "\bin\Release\Box.V2.pdb" $CORE_PDB_PATH=$CORE_PROJ_DIR + "\bin\Release\netstandard2.0\Box.V2.Core.pdb" $PFX_PATH="$FRAMEWORK_PROJ_DIR" + "\BoxSDKKey.pfx" +$TEST_PATH="$ROOT_DIR" + "\Box.V2.Test"