forked from googleapis/google-api-dotnet-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_tests_dotnetcore.bat
25 lines (19 loc) · 1.11 KB
/
run_tests_dotnetcore.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@echo off
rem Runs the .NET Core tests locally (Windows).
setlocal
set workspace=%~dp0
set nugetconfig=%workspace%\NuGet.Core.Config
REM Restore support libraries and tests.
dotnet restore "Src\Support\GoogleApis.Core_dotnetcore\project.json" --configfile "%nugetconfig%"
dotnet restore "Src\Support\GoogleApis_dotnetcore\project.json" --configfile "%nugetconfig%"
dotnet restore "Src\Support\GoogleApis.Auth_dotnetcore\project.json" --configfile "%nugetconfig%"
dotnet restore "Src\Support\GoogleApis.Tests_dotnetcore\project.json" --configfile "%nugetconfig%"
dotnet restore "Src\Support\GoogleApis.Auth.Tests_dotnetcore\project.json" --configfile "%nugetconfig%"
REM Restore generated libraries and tests.
dotnet restore "Src\Generated\Google.Apis.Discovery.v1\project.json" --configfile "%nugetconfig%"
dotnet restore "Src\GeneratedTests\Discovery.Tests\project.json" --configfile "%nugetconfig%"
REM Test support libraries.
dotnet test "Src\Support\GoogleApis.Tests_dotnetcore\project.json"
dotnet test "Src\Support\GoogleApis.Auth.Tests_dotnetcore"
REM Test generated libraries.
dotnet test "Src\GeneratedTests\Discovery.Tests"