Giter Club home page Giter Club logo

Comments (11)

NikolayPianikov avatar NikolayPianikov commented on June 2, 2024 4

The new issue is different from the one described in this ticket. We have other ticket for the issue related to SDK 6.0.300: https://youtrack.jetbrains.com/issue/TW-76189

from teamcity-dotnet-plugin.

mjewkes avatar mjewkes commented on June 2, 2024 3

Hey there -

We just upgraded to .NET 6.0 - we're seeing the similar following error.


Step 4/11: Running Unit Tests (.NET)
  dotnet test
    Starting: .NET SDK 6.0.300 "C:\Program Files\dotnet\dotnet.exe" test C:\BuildAgent\work\54ed349e18c2d874\UnitTests\UnitTests.csproj --settings C:\BuildAgent\work\54ed349e18c2d874\testSettings.runsettings @C:\BuildAgent\temp\agentTmp\2.rsp
    in directory: C:\BuildAgent\work\54ed349e18c2d874
    Microsoft (R) Test Execution Command Line Tool Version 17.2.0 (x64)
    Copyright (c) Microsoft Corporation.  All rights reserved.
    
    The argument /noconsolelogger is invalid. Please use the /help option to check the list of valid arguments.
    Process exited with code 1
    Process exited with code 1 (Step: Running Unit Tests (.NET))
  Step Running Unit Tests (.NET) failed
  Error message: Step Running Unit Tests (.NET) failed

I'm on
TeamCity Professional 2022.04 (build 108502)

Going into C:\BuildAgent\work\54ed349e18c2d874 and manually running "C:\Program Files\dotnet\dotnet.exe" test C:\BuildAgent\work\54ed349e18c2d874\UnitTests\UnitTests.csproj --settings C:\BuildAgent\work\54ed349e18c2d874\testSettings.runsettings works as expected.

The problem appears to be that the first line of C:\BuildAgent\temp\agentTmp\2.rsp is \noconsolelogger , which is invalid syntax for dotnet test afaik.

from teamcity-dotnet-plugin.

NikolayPianikov avatar NikolayPianikov commented on June 2, 2024 1

The related issue: https://youtrack.jetbrains.com/issue/TW-64569

from teamcity-dotnet-plugin.

schrufygroovy avatar schrufygroovy commented on June 2, 2024 1

@NikolayPianikov thx. works now

awesome work!

from teamcity-dotnet-plugin.

mjewkes avatar mjewkes commented on June 2, 2024 1

The output for me of manually typing:

λ  "C:\Program Files\dotnet\dotnet.exe" test C:\BuildAgent\work\54ed349e18c2d874\UnitTests\UnitTests.csproj --settings C:\BuildAgent\work\54ed349e18c2d874\testSettings.runsettings
  Determining projects to restore...
  All projects are up-to-date for restore.
  [... snip ...]
Test run for C:\BuildAgent\work\54ed349e18c2d874\UnitTests\bin\Debug\net6.0\UnitTests.dll (.NETCoreApp,Version=v6.0)
Microsoft (R) Test Execution Command Line Tool Version 17.2.0 (x64)
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...
A total of 1 test files matched the specified pattern.

Passed!  - Failed:     0, Passed:   255, Skipped:     0, Total:   255, Duration: 14 s - UnitTests.dll (net6.0)```

from teamcity-dotnet-plugin.

Xerxes004 avatar Xerxes004 commented on June 2, 2024 1

We are having the same issue with a temp file called 11.rsp. The first line in this file is /noconsolelogger. This is causing builds to fail with strange errors. The error appears to be related to the line directly after /noconsolelogger being injected into the dotnet test command without a preceding space.

So if before it would have been dotnet test proj.csproj /noconsolelogger <line2>, it looks like it's now dotnet test proj.csproj<line2> or something similar. It's hard to tell.

from teamcity-dotnet-plugin.

NikolayPianikov avatar NikolayPianikov commented on June 2, 2024

@schrufygroovy try using the command vstest instead as workaround

from teamcity-dotnet-plugin.

NikolayPianikov avatar NikolayPianikov commented on June 2, 2024

We should support a testing assembly as target for dotnet test command since 3.1.100

from teamcity-dotnet-plugin.

NikolayPianikov avatar NikolayPianikov commented on June 2, 2024

@schrufygroovy, which version of TeamCity do you have installed?

from teamcity-dotnet-plugin.

schrufygroovy avatar schrufygroovy commented on June 2, 2024

@schrufygroovy, which version of TeamCity do you have installed?

TeamCity Professional 2019.2.1 (build 71758)
I ensured I am using the latest version before I submitted the report.

from teamcity-dotnet-plugin.

NikolayPianikov avatar NikolayPianikov commented on June 2, 2024

@schrufygroovy It's brilliant and you could try the latest plugin

from teamcity-dotnet-plugin.

Related Issues (20)

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.