Giter Club home page Giter Club logo

azurepipelines.testlogger's People

Contributors

ad-mca-mk avatar daveaglick avatar icnocop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

azurepipelines.testlogger's Issues

how to use

what do you mean with "> dotnet test --test-adapter-path:. --logger:AzurePipelines " ?

how to run that?
sorry if my question is so basic

HttpRequestException: Response status code does not indicate success: 401 (Unauthorized).

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!

Logger crashes on missing package

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.

Shouldly.ShouldAssertException: [AzurePipelines.TestLogger.Tests.ClientMessage (x)] should be [AzurePipelines.TestLogger.Tests.ClientMessage (y)]

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

build.txt

The error messages aren't very helpful and so I had to debug the test to figure out which properties are actually different.

Actual Client Message Not As Expected

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.