Skip to content

Commit 490950c

Browse files
committed
Added batch scripts to run tests
1 parent 0ead030 commit 490950c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

RunTests-net472.bat

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
REM dotnet test will not use the correct .NET Framework 4.7.2 overloads, VSTest.Console shipped with VS2019 is built using .NET Framework 4.7.2 and accurately reflects running under .NET Framework 4.7.2
2+
dotnet build
3+
SET VSTestCommunityPath="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe"
4+
SET VSTestProfessionalPath="C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe"
5+
SET VSTestEnterprisePath="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe"
6+
if exist %VSTestCommunityPath% (SET VSTestPath=%VSTestCommunityPath%)
7+
if exist %VSTestProfessionalPath% (SET VSTestPath=%VSTestProfessionalPath%)
8+
if exist %VSTestEnterprisePath% (SET VSTestPath=%VSTestEnterprisePath%)
9+
if not defined VSTestPath echo VSTest.Console.exe was not found & exit /B 2
10+
%VSTestPath% "StandardSocketsHttpHandler.FunctionalTests\bin\Debug\net472\StandardSocketsHttpHandler.FunctionalTests.dll" /TestCaseFilter:"category!=WindowsAuthentication&category!=nonnetfxtests&category!=activeissue&category!=failing"

RunTests-netcoreapp31.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dotnet test StandardSocketsHttpHandler.FunctionalTests\StandardSocketsHttpHandler.FunctionalTests.csproj --framework netcoreapp3.1 --verbosity normal --filter "category!=WindowsAuthentication&category!=nonnetcoreapptests&category!=activeissue&category!=failing"

0 commit comments

Comments
 (0)