We still having issues when passing configuration to dotnet tests. This change makes dotnet build of tests and dotnet test commands always use debug build. We have issues #1267 and #1268 tracking fixes for this problem
This commit is contained in:
parent
04e5db1f1d
commit
2d55c145e9
3 changed files with 3 additions and 3 deletions
|
@ -22,6 +22,6 @@ PROJECTS=$(loadTestProjectList)
|
||||||
for project in $PROJECTS
|
for project in $PROJECTS
|
||||||
do
|
do
|
||||||
#we should use publish to an output path, we will once issue #1183 has been fixed and we can point dotnet test do a dll.
|
#we should use publish to an output path, we will once issue #1183 has been fixed and we can point dotnet test do a dll.
|
||||||
dotnet build --framework "dnxcore50" --runtime "$RID" --configuration "$CONFIGURATION" "$REPOROOT/test/$project"
|
dotnet build "$REPOROOT/test/$project"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ cp -rec -Force "$RepoRoot\test\TestProjects\*" "$TestBinRoot\TestProjects"
|
||||||
$TestProjects | foreach {
|
$TestProjects | foreach {
|
||||||
# This is a workaroudn for issue #1184, where dotnet test needs to be executed from the folder containing the project.json.
|
# This is a workaroudn for issue #1184, where dotnet test needs to be executed from the folder containing the project.json.
|
||||||
pushd "$RepoRoot\test\$($_.ProjectName)"
|
pushd "$RepoRoot\test\$($_.ProjectName)"
|
||||||
dotnet test -c "$Configuration" -xml "$TestBinRoot\$($_.ProjectName)-testResults.xml" -notrait category=failing
|
dotnet test -xml "$TestBinRoot\$($_.ProjectName)-testResults.xml" -notrait category=failing
|
||||||
popd
|
popd
|
||||||
|
|
||||||
$exitCode = $LastExitCode
|
$exitCode = $LastExitCode
|
||||||
|
|
|
@ -33,7 +33,7 @@ for project in $TestProjects
|
||||||
do
|
do
|
||||||
# This is a workaroudn for issue #1184, where dotnet test needs to be executed from the folder containing the project.json.
|
# This is a workaroudn for issue #1184, where dotnet test needs to be executed from the folder containing the project.json.
|
||||||
pushd "$REPOROOT/test/$project"
|
pushd "$REPOROOT/test/$project"
|
||||||
dotnet test -c "$CONFIGURATION" -xml "$TEST_BIN_ROOT/${project}-testResults.xml" -notrait category=failing
|
dotnet test -xml "$TEST_BIN_ROOT/${project}-testResults.xml" -notrait category=failing
|
||||||
popd
|
popd
|
||||||
|
|
||||||
exitCode=$?
|
exitCode=$?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue