icnocop / azurepipelines.testlogger Goto Github PK
View Code? Open in Web Editor NEWAzure Pipelines logger extension for the Visual Studio Test Platform
License: MIT License
Azure Pipelines logger extension for the Visual Studio Test Platform
License: MIT License
what do you mean with "> dotnet test --test-adapter-path:. --logger:AzurePipelines " ?
how to run that?
sorry if my question is so basic
Hi Dave.
Thank you for AzurePipelines.TestLogger
v1.0.3.
Since the built-in TfsPublisher
logger is deprecated in Visual Studio 2017, I'm trying to use this logger to publish test results to TFS 2015 Update 4 (on-premise) as part of my build instead.
Before I enabled the Allow Scripts to Access OAuth Token
option in my build definition, I received the error message AzurePipelines.TestLogger: Not an Azure Pipelines test run, environment variable SYSTEM_ACCESSTOKEN not set.
However, after I enabled the Allow Scripts to Access OAuth Token
option in my build definition, I receive the following error:
Error from AzurePipelines logger while sending POST to http://tfs2015:8080/tfs/DefaultCollection/MyTeamProject/_apis/test/runs?api-version=5.0
Body:
{"name":"MyTestAssembly (OS: Microsoft Windows 10.0.14393 , Job: Build, Agent: Agent-WIN-MACHINENAME)","build":{"id":"12345"},"startedDate":"2020-01-15T23:38:48.191Z","isAutomated":true}
Exception:
System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Unauthorized).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at AzurePipelines.TestLogger.ApiClient.<SendAsync>d__3.MoveNext()
Do you have any ideas on how I can troubleshoot and/or resolve this issue?
Is there another security setting that needs to be configured?
Is it possible to test this using the default logged in Windows credentials instead of the Basic
authentication type?
For example, see https://docs.microsoft.com/en-us/dotnet/api/system.net.webclient.usedefaultcredentials.
The Visual Studio 2017 test agent (VsoAgent) is running in interactive mode.
The build definition is using the new build pipeline definition and isn't a XAML build definition.
Command line:
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" "c:\agent\_work\1\s\MyProject\bin\Release\MyTestAssembly.dll" /logger:"AzurePipelines" /TestAdapterPath:"c:\agent\_work\1\s\AzurePipelines.TestLogger\v1.0.3\netstandard1.5"
Thank you!
Duration appears to be based on start and completed time. However, when setting a parent test to the completed state, it appears to reset times and set duration to 0.
Should initially be set to "Passed" but then patched/updated to "Failed" if any child test fails
I added the logger to the test project, and to the dotnet test command prompt in the pipeline yaml like
--logger AzurePipelines;Verbose=true;UseDefaultCredentials=true
but got an error when running
Error while initializing logger: logger://Microsoft/TestPlatform/AzurePiplinesTestLogger/v1, Exception details: Could not load file or assembly 'Semver, Version=2.0.6.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
The semver
package is not part of my csproj, but I see it is part of this component, but not listed as a dependency on nuget.prg for this package.
Hi Dave.
I forked and cloned the project, but I get the following error when the tests are run:
X CreateParents [73ms]
Error Message:
Shouldly.ShouldAssertException : [AzurePipelines.TestLogger.Tests.ClientMessage (-971002351)]
should be
[AzurePipelines.TestLogger.Tests.ClientMessage (1542145733)]
but was not
difference
[*AzurePipelines.TestLogger.Tests.ClientMessage (-971002351)*]
Stack Trace:
at Shouldly.ShouldlyCoreExtensions.AssertAwesomely[T](T actual, Func`2 specifiedConstraint, Object originalActual, Object originalExpected, Func`1 customMessage, String shouldlyMethod)
at Shouldly.ShouldBeTestExtensions.ShouldBe[T](IEnumerable`1 actual, IEnumerable`1 expected, Boolean ignoreOrder, Func`1 customMessage)
at Shouldly.ShouldBeTestExtensions.ShouldBe[T](IEnumerable`1 actual, IEnumerable`1 expected, Boolean ignoreOrder)
at AzurePipelines.TestLogger.Tests.LoggerQueueTests.CreateParents() in C:\github\icnocop\AzurePipelines.TestLogger\tests\AzurePipelines.TestLogger.Tests\LoggerQueueTests.cs:line 201
The error messages aren't very helpful and so I had to debug the test to figure out which properties are actually different.
Windows 10 Enterprise Version 1909 (OS Build 18363.535) 64-bit
Visual Studio Enterprise 2019 16.4.1
TimeZone: PST
Locale: English - US
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.