Enable the blame data collector (#20318)
- This should dump out which tests were incomplete on the test runner crashing.
This commit is contained in:
parent
e35eb1211a
commit
619e2025f1
|
|
@ -77,7 +77,7 @@ set NONQUARANTINE_FILTER="Quarantined!=true"
|
||||||
set QUARANTINE_FILTER="Quarantined=true"
|
set QUARANTINE_FILTER="Quarantined=true"
|
||||||
if %$quarantined%==true (
|
if %$quarantined%==true (
|
||||||
echo Running quarantined tests.
|
echo Running quarantined tests.
|
||||||
%DOTNET_ROOT%\dotnet vstest %$target% --logger:xunit --logger:"console;verbosity=normal" --TestCaseFilter:%QUARANTINE_FILTER%
|
%DOTNET_ROOT%\dotnet vstest %$target% --logger:xunit --logger:"console;verbosity=normal" --blame --TestCaseFilter:%QUARANTINE_FILTER%
|
||||||
if errorlevel 1 (
|
if errorlevel 1 (
|
||||||
echo Failure in quarantined test 1>&2
|
echo Failure in quarantined test 1>&2
|
||||||
REM DO NOT EXIT and DO NOT SET EXIT_CODE to 1
|
REM DO NOT EXIT and DO NOT SET EXIT_CODE to 1
|
||||||
|
|
@ -85,7 +85,7 @@ if %$quarantined%==true (
|
||||||
) else (
|
) else (
|
||||||
REM Filter syntax: https://github.com/Microsoft/vstest-docs/blob/master/docs/filter.md
|
REM Filter syntax: https://github.com/Microsoft/vstest-docs/blob/master/docs/filter.md
|
||||||
echo Running non-quarantined tests.
|
echo Running non-quarantined tests.
|
||||||
%DOTNET_ROOT%\dotnet vstest %$target% --logger:xunit --logger:"console;verbosity=normal" --TestCaseFilter:%NONQUARANTINE_FILTER%
|
%DOTNET_ROOT%\dotnet vstest %$target% --logger:xunit --logger:"console;verbosity=normal" --blame --TestCaseFilter:%NONQUARANTINE_FILTER%
|
||||||
if errorlevel 1 (
|
if errorlevel 1 (
|
||||||
echo Failure in non-quarantined test 1>&2
|
echo Failure in non-quarantined test 1>&2
|
||||||
set exit_code=1
|
set exit_code=1
|
||||||
|
|
|
||||||
|
|
@ -139,14 +139,14 @@ NONQUARANTINE_FILTER="Quarantined!=true"
|
||||||
QUARANTINE_FILTER="Quarantined=true"
|
QUARANTINE_FILTER="Quarantined=true"
|
||||||
if [ "$quarantined" == true ]; then
|
if [ "$quarantined" == true ]; then
|
||||||
echo "Running all tests including quarantined."
|
echo "Running all tests including quarantined."
|
||||||
$DOTNET_ROOT/dotnet vstest $test_binary_path --logger:xunit --logger:"console;verbosity=normal" --TestCaseFilter:"$QUARANTINE_FILTER"
|
$DOTNET_ROOT/dotnet vstest $test_binary_path --logger:xunit --logger:"console;verbosity=normal" --blame --TestCaseFilter:"$QUARANTINE_FILTER"
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
echo "Quarantined tests failed!" 1>&2
|
echo "Quarantined tests failed!" 1>&2
|
||||||
# DO NOT EXIT
|
# DO NOT EXIT
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Running non-quarantined tests."
|
echo "Running non-quarantined tests."
|
||||||
$DOTNET_ROOT/dotnet vstest $test_binary_path --logger:xunit --logger:"console;verbosity=normal" --TestCaseFilter:"$NONQUARANTINE_FILTER"
|
$DOTNET_ROOT/dotnet vstest $test_binary_path --logger:xunit --logger:"console;verbosity=normal" --blame --TestCaseFilter:"$NONQUARANTINE_FILTER"
|
||||||
exit_code=$?
|
exit_code=$?
|
||||||
if [ $exit_code != 0 ]; then
|
if [ $exit_code != 0 ]; then
|
||||||
echo "Non-quarantined tests failed!" 1>&2
|
echo "Non-quarantined tests failed!" 1>&2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue