-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Xunit xml output #248
Xunit xml output #248
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,8 @@ if not exist %__LogsDir% md %__LogsDir% | |
:SkipDefaultCoreRootSetup | ||
set __XunitWrapperBuildLog=%__LogsDir%\Tests_XunitWrapper_%__BuildArch%__%__BuildType%.log | ||
set __TestRunBuildLog=%__LogsDir%\TestRunResults_%__BuildArch%__%__BuildType%.log | ||
set __TestRunHtmlLog=%CD%\TestRun_%__BuildArch%_%__BuildType%.html | ||
set __TestRunHtmlLog=%__LogsDir%\TestRun_%__BuildArch%_%__BuildType%.html | ||
set __TestRunXmlLog=%__LogsDir%\TestRun_%__BuildArch%_%__BuildType%.xml | ||
|
||
echo "Core_Root that will be used is : %Core_Root%" | ||
echo "Starting The Test Run .. " | ||
|
@@ -109,7 +110,12 @@ md %Core_Root% | |
xcopy /s %__BinDir% %Core_Root% | ||
call :runtests | ||
|
||
IF %BUILDERRORLEVEL% NEQ 0 echo Test Run failed. Refer %__TestRunBuildLog% for details. && exit /b %BUILDERRORLEVEL% | ||
IF %BUILDERRORLEVEL% NEQ 0 ( | ||
echo Test Run failed. Refer to the following" | ||
echo Msbuild log: %__TestRunBuildLog% | ||
echo Html report: %__TestRunHtmlLog% | ||
exit /b %BUILDERRORLEVEL% | ||
) | ||
goto :eof | ||
|
||
:runtests | ||
|
@@ -118,12 +124,6 @@ goto :eof | |
set BUILDERRORLEVEL=%ERRORLEVEL% | ||
goto :eof | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you remove this instead so that following are no longer dead code There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We call to runtests, which if it returns as failing will print a message about where to look for results. I think removing the dead code is the right option. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That message actually points to the msbuild log which will contain all possible failures , the html is sufficient for most people and is much easier to use to diagnose test failures There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated with new info in the message after the runtest call |
||
|
||
%_buildprefix% echo "Core_Root that was used is %Core_Root%" %_buildpostfix% | ||
echo "Find details of the run in %__TestRunHtmlLog% | ||
|
||
|
||
goto :eof | ||
|
||
:Usage | ||
echo. | ||
echo Usage: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this log actually shows the console output of xunit runner and steps taken to prep the run. Not building the tests