From 901764c1aa610685ce850748103c8554aef3d250 Mon Sep 17 00:00:00 2001 From: mamaso Date: Mon, 18 Sep 2017 22:53:25 -0700 Subject: [PATCH] Add app insights logging to e2e test run --- NuGet.Config | 8 +++++ appveyor.yml | 32 ++++++++++++------- .../WebJobs.Host.EndToEndTests.csproj | 1 + 3 files changed, 29 insertions(+), 12 deletions(-) create mode 100644 NuGet.Config diff --git a/NuGet.Config b/NuGet.Config new file mode 100644 index 000000000..fbcc5e3a8 --- /dev/null +++ b/NuGet.Config @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml index 78fb17779..3787a5b70 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -28,25 +28,33 @@ build_script: dotnet pack src\Microsoft.Azure.WebJobs.ServiceBus\EventHubs\WebJobs.EventHubs.csproj -o ..\..\..\buildoutput --no-build --version-suffix "-$env:APPVEYOR_BUILD_NUMBER" test_script: - ps: >- - $success = $true; - dotnet test .\test\Microsoft.Azure.WebJobs.Host.UnitTests\ -v q --no-build; - $success = $success -and $?; + $success = $true - dotnet test .\test\Microsoft.Azure.WebJobs.Host.FunctionalTests\ -v q --no-build; - $success = $success -and $?; + dotnet test .\test\Microsoft.Azure.WebJobs.Host.UnitTests\ -v q --no-build - dotnet test .\test\Microsoft.Azure.WebJobs.Logging.FunctionalTests\ -v q --no-build; - $success = $success -and $?; + $success = $success -and $? - dotnet test .\test\Microsoft.Azure.WebJobs.Host.EndToEndTests\ -v q --no-build; - $success = $success -and $?; + dotnet test .\test\Microsoft.Azure.WebJobs.Host.FunctionalTests\ -v q --no-build - dotnet test .\test\Microsoft.Azure.WebJobs.EventHubs.UnitTests\ -v q --no-build; - $success = $success -and $?; + $success = $success -and $? + + dotnet test .\test\Microsoft.Azure.WebJobs.Logging.FunctionalTests\ -v q --no-build + + $success = $success -and $? + + # see results in app insights AntaresDemo 'functionse2eai' + + dotnet test .\test\Microsoft.Azure.WebJobs.Host.EndToEndTests\ -v q --no-build -l appinsights + + $success = $success -and $? + + dotnet test .\test\Microsoft.Azure.WebJobs.EventHubs.UnitTests\ -v q --no-build + + $success = $success -and $? if (-not $success) { exit 1 } artifacts: - path: buildoutput\*.nupkg name: Binaries hosts: - api.nuget.org: 93.184.221.200 \ No newline at end of file + api.nuget.org: 93.184.221.200 diff --git a/test/Microsoft.Azure.WebJobs.Host.EndToEndTests/WebJobs.Host.EndToEndTests.csproj b/test/Microsoft.Azure.WebJobs.Host.EndToEndTests/WebJobs.Host.EndToEndTests.csproj index e0fd9989e..76b19a1e8 100644 --- a/test/Microsoft.Azure.WebJobs.Host.EndToEndTests/WebJobs.Host.EndToEndTests.csproj +++ b/test/Microsoft.Azure.WebJobs.Host.EndToEndTests/WebJobs.Host.EndToEndTests.csproj @@ -12,6 +12,7 @@ + all