Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different behavior #10727

Open
dimonovdd opened this issue Dec 15, 2024 · 1 comment
Open

Different behavior #10727

dimonovdd opened this issue Dec 15, 2024 · 1 comment

Comments

@dimonovdd
Copy link

I'm trying to figure out if this behavior is acceptable:

mkdir test-tmp
cd test-tmp
dotnet new nunit
dotnet test

I ran this script using teamcity and SSH. The script was executed from under the same user in the same directory. But I was getting different output to the console:

SSH:

Restore complete (0,2s)
  test-tmp succeeded (0,1s) → bin/Debug/net9.0/test-tmp.dll
NUnit Adapter 4.6.0.0: Test execution started
Running all tests in /Users/_teamcity/teamcity_agent/work/440f3aaa65ba92e1/test-tmp/bin/Debug/net9.0/test-tmp.dll
   NUnit3TestExecutor discovered 1 of 1 NUnit test cases using Current Discovery mode, Non-Explicit run
NUnit Adapter 4.6.0.0: Test execution complete
  test-tmp test succeeded (0,6s)

Test summary: total: 1, failed: 0, succeeded: 1, skipped: 0, duration: 0,5s
Build succeeded in 1,1s

Teamcity:

  Determining projects to restore...
  All projects are up-to-date for restore.
  test-tmp -> /Users/_teamcity/teamcity_agent/work/440f3aaa65ba92e1/test-tmp/bin/Debug/net9.0/test-tmp.dll
Test run for /Users/_teamcity/teamcity_agent/work/440f3aaa65ba92e1/test-tmp/bin/Debug/net9.0/test-tmp.dll (.NETCoreApp,Version=v9.0)
VSTest version 17.12.0 (arm64)

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

Passed!  - Failed:     0, Passed:     1, Skipped:     0, Total:     1, Duration: 12 ms - test-tmp.dll (net9.0)

I tried to change the values of _MSBUILDTLENABLED and VsTestUseMSBuildOutput, changing them leads to a change in SSH output, but nothing changes from teamcity.

export _MSBUILDTLENABLED =1
dotnet test --property:VsTestUseMSBuildOutput=true
@nohwnd
Copy link
Member

nohwnd commented Dec 16, 2024

Try -tl:true on the commandline, But I don't think you will have good time when you enable terminal logger in redirected session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants