Fixed cmd scripts to run locallly

This commit is contained in:
Cijo Thomas 2017-11-08 16:43:44 -08:00
Родитель 135258c7b8
Коммит d97fce436b
3 изменённых файлов: 13 добавлений и 3 удалений

Просмотреть файл

@ -45,6 +45,12 @@ The test apps refers to the Web SDK assemblies from your local build. After maki
in either IISExpress or IIS, and attach debugger to it. Open the .cs file you want your breakpoint in and set it. Now triggering a request to the application will hit the breakpoint.
The exact request to be triggered depends on what you are doing. If investigating functional test failures locally, then the tests logs should contain the url it hit to trigger scenarios.
<TODO>
Dependency Collector tests deploy the test apps, along with dependencies (Fake Ingestion, SQL etc) to Docker containers inside same network, so that apps can access the dependencies with their names. However, if
the test apps are deployed to IIS or IISExpress, it won't be able to access dependencies without using their IP Address.
(Todo is to write a small PS script, which can find ip addresses and replace them in Web.config or applicationinsights.config)
</TODO>
Following pre-requisite is needed to deploy to IIS locally.
* IIS (Make sure Internet Information Services > World Wide Web Services > Application Development Features > ASP.NET 4.6 is enabled)

Просмотреть файл

@ -1,10 +1,10 @@
@echo off
@setlocal enabledelayedexpansion enableextensions
-CALL buildRelease.cmd
CALL buildRelease.cmd
set BuildRoot=%~dp0..\bin\Release\
set VSTestPath=%PROGRAMFILES(x86)%\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe
CALL "%VSTestPath%" /UseVsixExtensions:true "%BuildRoot%Test\DependencyCollector\FunctionalTests\FuncTest\FuncTest.dll" "%BuildRoot%Test\PerformanceCollector\FunctionalTests\PerfCollector.FunctionalTests.dll" "%BuildRoot%Test\Web\FunctionalTests\FunctionalTests\Functional.dll" /logger:trx
CALL "%VSTestPath%" /UseVsixExtensions:true "%BuildRoot%Test\E2ETests\E2ETests\E2ETests.dll" "%BuildRoot%Test\PerformanceCollector\FunctionalTests\PerfCollector.FunctionalTests.dll" "%BuildRoot%Test\Web\FunctionalTests\FunctionalTests\Functional.dll" /logger:trx

Просмотреть файл

@ -6,4 +6,8 @@ CALL buildDebug.cmd
set BuildRoot=%~dp0..\bin\debug\
set VSTestPath=%PROGRAMFILES(x86)%\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe
CALL "%VSTestPath%" /UseVsixExtensions:true "%BuildRoot%Src\PerformanceCollector\Unit.Tests\Unit.Tests.dll" "%BuildRoot%Src\PerformanceCollector\Xdt.Tests\Xdt.Tests.dll" "%BuildRoot%Src\DependencyCollector\Net40.Tests\Microsoft.ApplicationInsights.DependencyCollector.Net40.Tests.dll" "%BuildRoot%Src\DependencyCollector\Net40.Tests\Microsoft.ApplicationInsights.TestFramework.Net40.dll" "%BuildRoot%Src\DependencyCollector\Net45.Tests\Microsoft.ApplicationInsights.DependencyCollector.Net45.Tests.dll" "%BuildRoot%Src\DependencyCollector\Net45.Tests\Microsoft.ApplicationInsights.TestFramework.Net45.dll" "%BuildRoot%Src\DependencyCollector\NetCore.Tests\netcoreapp1.0\Microsoft.AI.DependencyCollector.Tests.dll" "%BuildRoot%Src\DependencyCollector\Nuget.Tests\Microsoft.ApplicationInsights.DependencyCollector.NuGet.Tests.dll" "%BuildRoot%Src\Web\Web.Net40.Tests\Microsoft.ApplicationInsights.Web.Net40.Tests.dll" "%BuildRoot%Src\Web\Web.Net45.Tests\Microsoft.ApplicationInsights.Web.Net45.Tests.dll" "%BuildRoot%Src\Web\Web.Nuget.Tests\Microsoft.ApplicationInsights.Platform.Web.Nuget.Tests.dll" "%BuildRoot%Src\WindowsServer\WindowsServer.Net40.Tests\Microsoft.ApplicationInsights.TestFramework.Net40.dll" "%BuildRoot%Src\WindowsServer\WindowsServer.Net40.Tests\WindowsServer.Net40.Tests.dll" "%BuildRoot%Src\WindowsServer\WindowsServer.Net45.Tests\Microsoft.ApplicationInsights.TestFramework.Net45.dll" "%BuildRoot%Src\WindowsServer\WindowsServer.Net45.Tests\WindowsServer.Net45.Tests.dll" "%BuildRoot%Src\WindowsServer\WindowsServer.Nuget.Tests\WindowsServer.Nuget.Tests.dll" /logger:trx
CALL "%VSTestPath%" /UseVsixExtensions:true "%BuildRoot%Src\PerformanceCollector\Xdt.Tests\Xdt.Tests.dll" "%BuildRoot%Src\PerformanceCollector\Perf.NetFull.Tests\Microsoft.AI.PerformanceCollector.NetFull.Tests.dll" "%BuildRoot%Src\DependencyCollector\Net45.Tests\Microsoft.ApplicationInsights.DependencyCollector.Net45.Tests.dll" "%BuildRoot%Src\DependencyCollector\Nuget.Tests\Microsoft.ApplicationInsights.DependencyCollector.NuGet.Tests.dll" "%BuildRoot%Src\Web\Web.Net45.Tests\Microsoft.ApplicationInsights.Web.Net45.Tests.dll" "%BuildRoot%Src\Web\Web.Nuget.Tests\Microsoft.ApplicationInsights.Platform.Web.Nuget.Tests.dll" "%BuildRoot%Src\WindowsServer\WindowsServer.Net45.Tests\WindowsServer.Net45.Tests.dll" "%BuildRoot%Src\WindowsServer\WindowsServer.Nuget.Tests\WindowsServer.Nuget.Tests.dll" /logger:trx
set VSTestNetCorePath=%PROGRAMFILES(x86)%\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions\TestPlatform\vstest.console.exe
CALL "%VSTestNetCorePath%" "%BuildRoot%Src\PerformanceCollector\NetCore.Tests\netcoreapp1.0\Microsoft.AI.PerformanceCollector.NetCore.Tests.dll" "%BuildRoot%Src\DependencyCollector\NetCore.Tests\netcoreapp1.0\Microsoft.AI.DependencyCollector.Tests.dll" "/Framework:FrameworkCore10" /logger:trx