File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,14 @@ powershell.exe -NoProfile -ExecutionPolicy unrestricted -Command "[Net.ServicePo
15
15
16
16
set HELIX = true
17
17
18
+ %DOTNET_ROOT% \dotnet vstest %target% -lt > discovered.txt
19
+ find /c " Exception thrown" discovered.txt
20
+ if %errorlevel% equ 0 (
21
+ echo Exception thrown during test discovery.
22
+ type discovered.txt
23
+ exit 1
24
+ )
25
+
18
26
%DOTNET_ROOT% \dotnet vstest %target% --logger:trx --logger:console;verbosity=normal
19
27
20
28
Original file line number Diff line number Diff line change @@ -60,4 +60,11 @@ export DOTNET_CLI_HOME="$HELIX_CORRELATION_PAYLOAD/home"
60
60
61
61
export helix=" true"
62
62
63
- $HELIX_CORRELATION_PAYLOAD /sdk/dotnet vstest $1 --logger:trx
63
+ $DOTNET_ROOT /dotnet vstest $1 -lt > discovered.txt
64
+ if grep -q " Exception thrown" discovered.txt; then
65
+ echo -e " ${RED} Exception thrown during test discovery${RESET} " .
66
+ cat discovered.txt
67
+ exit 1
68
+ fi
69
+
70
+ $DOTNET_ROOT /dotnet vstest $1 --logger:trx
You can’t perform that action at this time.
0 commit comments