Enable visual xunit results.
Fixup xml test results name
This commit is contained in:
parent
e39d30ba9c
commit
6f2002b896
3 changed files with 5 additions and 4 deletions
|
@ -66,6 +66,7 @@ def static getBuildJobName(def configuration, def os) {
|
||||||
|
|
||||||
|
|
||||||
Utilities.standardJobSetup(newJob, project, isPR)
|
Utilities.standardJobSetup(newJob, project, isPR)
|
||||||
|
Utilities.addXUnitDotNETResults(newJob, '**/*-testResults.xml')
|
||||||
if (isPR) {
|
if (isPR) {
|
||||||
Utilities.addGithubPRTrigger(newJob, "${os} ${configuration} Build")
|
Utilities.addGithubPRTrigger(newJob, "${os} ${configuration} Build")
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,7 @@ pushd "$TestBinRoot"
|
||||||
|
|
||||||
# Run each test project
|
# Run each test project
|
||||||
$TestProjects | ForEach-Object {
|
$TestProjects | ForEach-Object {
|
||||||
& "corerun.exe" "xunit.console.netcore.exe" "$_.dll" -xml "$_.xml" -notrait category=failing
|
& "corerun.exe" "xunit.console.netcore.exe" "$_.dll" -xml "$_-testResults.xml" -notrait category=failing
|
||||||
$exitCode = $LastExitCode
|
$exitCode = $LastExitCode
|
||||||
if ($exitCode -ne 0) {
|
if ($exitCode -ne 0) {
|
||||||
$failingTests += "$_"
|
$failingTests += "$_"
|
||||||
|
@ -58,7 +58,7 @@ popd
|
||||||
if ($failCount -ne 0) {
|
if ($failCount -ne 0) {
|
||||||
Write-Host -ForegroundColor Red "The following tests failed."
|
Write-Host -ForegroundColor Red "The following tests failed."
|
||||||
$failingTests | ForEach-Object {
|
$failingTests | ForEach-Object {
|
||||||
Write-Host -ForegroundColor Red "$_.dll failed. Logs in '$TestBinRoot\$_.xml'"
|
Write-Host -ForegroundColor Red "$_.dll failed. Logs in '$TestBinRoot\$_-testResults.xml'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -42,7 +42,7 @@ failCount=0
|
||||||
|
|
||||||
for project in ${TestProjects[@]}
|
for project in ${TestProjects[@]}
|
||||||
do
|
do
|
||||||
./corerun "xunit.console.netcore.exe" "$project.dll" -xml "project.xml" -notrait category=failing
|
./corerun "xunit.console.netcore.exe" "$project.dll" -xml "${project}-testResults.xml" -notrait category=failing
|
||||||
exitCode=$?
|
exitCode=$?
|
||||||
failCount+=$exitCode
|
failCount+=$exitCode
|
||||||
if [ $exitCode -ne 0 ]; then
|
if [ $exitCode -ne 0 ]; then
|
||||||
|
@ -52,7 +52,7 @@ done
|
||||||
|
|
||||||
for test in ${failedTests[@]}
|
for test in ${failedTests[@]}
|
||||||
do
|
do
|
||||||
error "$test.dll failed. Logs in '$TestBinRoot/$test.xml'"
|
error "$test.dll failed. Logs in '$TestBinRoot/${test}-testResults.xml'"
|
||||||
done
|
done
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
Loading…
Reference in a new issue