Test Adapter not working for net46+xUnit combo
mbenua-mparticle opened this issue · comments
I'm seeing an issue with the very latest versions of the plugin where dotnet test is unable to find any tests in a net46 DLL using xUnit. I've verified the DLLs are there, and that netstandard2.0 tests DO seem to work correctly. This is the only difference I've been able to isolate.
This issue doesn't repro locally, nor does it repro on TeamCity if I do my build using a powershell script instead of with this plugin.
WORKS:
[17:48:33] : [dotCover Settings] [34m "C:\Program Files\dotnet\dotnet.exe" test C:\BuildAgent\work\3d88535fb04ef4eb\test\MP.Audience.Forwarding.Cache.Test\MP.Audience.Forwarding.Cache.Test.csproj -l=TeamCity -a=C:\BuildAgent\tools\TeamCity.Dotnet.Integration.1.0.34-beta\vstest15 --verbosity Diagnostic --configuration Release --no-restore --no-build @C:\BuildAgent\temp\buildTmp\86abed73675d4841883c085e3ac2dd94.rsp
[17:48:36] : [Step 2/6] C:\Program Files\dotnet\sdk\2.0.0\MSBuild.dll /noconsolelogger /nologo /l:TeamCity.MSBuild.Logger.TeamCityMSBuildLogger,C:\BuildAgent\tools\TeamCity.Dotnet.Integration.1.0.34-beta\msbuild15\TeamCity.MSBuild.Logger.dll;TeamCity /m /p:VSTestLogger=TeamCity /p:VSTestTestAdapterPath=C:\BuildAgent\tools\TeamCity.Dotnet.Integration.1.0.34-beta\vstest15 /p:Configuration=Release /p:VSTestNoBuild=true /p:VSTestLogger=logger://teamcity /p:VSTestTestAdapterPath=C:\BuildAgent\tools\TeamCity.Dotnet.Integration.1.0.34-beta\vstest15 /p:agentHomeDir=C:\BuildAgent /p:agentName=teamcityXXXX /p:agentWorkDir=C:\BuildAgent\work /p:buildNumber=730 /p:buildVcsNumber=7bd9a041531cb75334d498e1230795dc4360106e /p:buildVcsNumber1=7bd9a041531cb75334d498e1230795dc4360106e /p:buildVcsNumberMPMain_PullRequestBuild_HttpsGithubComMParticleMPServerGit=7bd9a041531cb75334d498e1230795dc4360106e /p:ec2AmiId=ami-XXXXXX /p:ec2AmiLaunchIndex=0 /p:ec2AmiManifestPath=(unknown) /p:ec2InstanceId=i-XXXXX /p:ec2InstanceType=t2.2xlarge /p:ec2LocalHostname=ip-XXXXXX /p:ec2LocalIpv4=10.XXX /p:ec2PublicHostname=ec2-XXXX /p:ec2PublicIpv4=5XXXX /p:ec2ReservationId=r-08XXXXX /p:javaIoTmpdir=C:\BuildAgent\temp\buildTmp /p:teamcityAgentCpuBenchmark=523 /p:teamcityAgentDotnetAgent_url=http://localhost:9090/RPC2 /p:teamcityAgentDotnetBuild_id=143569 /p:teamcityAuthPassword=XXxXX /p:teamcityAuthUserId=TeamCityBuildId=143569 /p:teamcityBuildChangedFilesFile=C:\BuildAgent\temp\buildTmp\changedFiles7993954758542041067.txt /p:teamcityBuildCheckoutDir=C:\BuildAgent\work\3d88535fb04ef4eb /p:teamcityBuildIncrementalModeEnabled=false /p:teamcityBuildPropertiesFile=C:\BuildAgent\temp\buildTmp\teamcity.build1113422508937416479.properties /p:teamcityBuildTempDir=C:\BuildAgent\temp\buildTmp /p:teamcityBuildWorkingDir=C:\BuildAgent\work\3d88535fb04ef4eb\test /p:teamcityBuildConfName=1. Build PR /p:teamcityBuildTypeId=mPMain_PullRequestBuild_1BuildPr /p:teamcityConfigurationPropertiesFile=C:\BuildAgent\temp\buildTmp\teamcity.config6446472641386405168.properties /p:teamcityDotnetNunitaddin=C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.TeamCity.NUnitAddin-NUnit /p:teamcityDotnetNunitlauncher=C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe /p:teamcityDotnetNunitlauncherMsbuildTask=C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.MSBuildLoggers.dll /p:teamcityDotnetNunitlauncher11=C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher1.1.exe /p:teamcityDotnetNunitlauncher20=C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher2.0.exe /p:teamcityDotnetNunitlauncher20Vsts=C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher2.0.VSTS.exe /p:teamcityDotnetPlatform=C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.TeamCity.PlatformProcessRunner.1.1.exe /p:teamcityProjectName=Pull Request Build /p:teamcityRunnerPropertiesFile=C:\BuildAgent\temp\buildTmp\teamcity.runner2197140677578396754.properties /p:teamcityTestsRecentlyFailedTestsFile=C:\BuildAgent\temp\buildTmp\testsToRunFirst1742856303287354566.txt /p:teamcityVersion=2017.1.1 (build 46654) /p:VSTestVerbosity=Diagnostic /t:VSTest /v:m /v:quiet /verbosity:Diagnostic C:\BuildAgent\work\3d88535fb04ef4eb\test\MP.Audience.Forwarding.Cache.Test\MP.Audience.Forwarding.Cache.Test.csproj
[17:48:38] : [Step 2/6] Test run for C:\BuildAgent\work\3d88535fb04ef4eb\test\MP.Audience.Forwarding.Cache.Test\bin\Release\netcoreapp2.0\MP.Audience.Forwarding.Cache.Test.dll(.NETCoreApp,Version=v2.0)
BROKEN:
[17:48:48] : [dotCover Settings] [34m "C:\Program Files\dotnet\dotnet.exe" test C:\BuildAgent\work\3d88535fb04ef4eb\test\MP.Common.EnvironmentConfiguration.Test\MP.Common.EnvironmentConfiguration.Test.csproj -l=TeamCity -a=C:\BuildAgent\tools\TeamCity.Dotnet.Integration.1.0.34-beta\vstest15 --verbosity Diagnostic --configuration Release --no-restore --no-build @C:\BuildAgent\temp\buildTmp\0ec42cd2d3b0454fb2bba2bbd20a422f.rsp
[17:48:52] : [Step 2/6] C:\Program Files\dotnet\sdk\2.0.0\MSBuild.dll /noconsolelogger /nologo /l:TeamCity.MSBuild.Logger.TeamCityMSBuildLogger,C:\BuildAgent\tools\TeamCity.Dotnet.Integration.1.0.34-beta\msbuild15\TeamCity.MSBuild.Logger.dll;TeamCity /m /p:VSTestLogger=TeamCity /p:VSTestTestAdapterPath=C:\BuildAgent\tools\TeamCity.Dotnet.Integration.1.0.34-beta\vstest15 /p:Configuration=Release /p:VSTestNoBuild=true /p:VSTestLogger=logger://teamcity /p:VSTestTestAdapterPath=C:\BuildAgent\tools\TeamCity.Dotnet.Integration.1.0.34-beta\vstest15 /p:agentHomeDir=C:\BuildAgent /p:agentName=teamcityXXXX /p:agentWorkDir=C:\BuildAgent\work /p:buildNumber=730 /p:buildVcsNumber=7bd9a041531cb75334d498e1230795dc4360106e /p:buildVcsNumber1=7bd9a041531cb75334d498e1230795dc4360106e /p:buildVcsNumberMPMain_PullRequestBuildGit=7bd9a041531cb75334d498e1230795dc4360106e /p:ec2AmiId=ami-XXXX /p:ec2AmiLaunchIndex=0 /p:ec2AmiManifestPath=(unknown) /p:ec2InstanceId=i-XXXX /p:ec2InstanceType=t2.2xlarge /p:ec2LocalHostname=ip-XXXX ec2.internal /p:ec2LocalIpv4=10.XXX /p:ec2PublicHostname=ec2-XXXXX /p:ec2PublicIpv4=5XXXXX /p:ec2ReservationId=r-08XXXXXX /p:javaIoTmpdir=C:\BuildAgent\temp\buildTmp /p:teamcityAgentCpuBenchmark=523 /p:teamcityAgentDotnetAgent_url=http://localhost:9090/RPC2 /p:teamcityAgentDotnetBuild_id=143569 /p:teamcityAuthPassword=XXXXX /p:teamcityAuthUserId=TeamCityBuildId=143569 /p:teamcityBuildChangedFilesFile=C:\BuildAgent\temp\buildTmp\changedFiles7993954758542041067.txt /p:teamcityBuildCheckoutDir=C:\BuildAgent\work\3d88535fb04ef4eb /p:teamcityBuildIncrementalModeEnabled=false /p:teamcityBuildPropertiesFile=C:\BuildAgent\temp\buildTmp\teamcity.build1113422508937416479.properties /p:teamcityBuildTempDir=C:\BuildAgent\temp\buildTmp /p:teamcityBuildWorkingDir=C:\BuildAgent\work\3d88535fb04ef4eb\test /p:teamcityBuildConfName=1. Build PR /p:teamcityBuildTypeId=mPMain_PullRequestBuild_1BuildPr /p:teamcityConfigurationPropertiesFile=C:\BuildAgent\temp\buildTmp\teamcity.config6446472641386405168.properties /p:teamcityDotnetNunitaddin=C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.TeamCity.NUnitAddin-NUnit /p:teamcityDotnetNunitlauncher=C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe /p:teamcityDotnetNunitlauncherMsbuildTask=C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.MSBuildLoggers.dll /p:teamcityDotnetNunitlauncher11=C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher1.1.exe /p:teamcityDotnetNunitlauncher20=C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher2.0.exe /p:teamcityDotnetNunitlauncher20Vsts=C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher2.0.VSTS.exe /p:teamcityDotnetPlatform=C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.TeamCity.PlatformProcessRunner.1.1.exe /p:teamcityProjectName=Pull Request Build /p:teamcityRunnerPropertiesFile=C:\BuildAgent\temp\buildTmp\teamcity.runner2197140677578396754.properties /p:teamcityTestsRecentlyFailedTestsFile=C:\BuildAgent\temp\buildTmp\testsToRunFirst1742856303287354566.txt /p:teamcityVersion=2017.1.1 (build 46654) /p:VSTestVerbosity=Diagnostic /t:VSTest /v:m /v:quiet /verbosity:Diagnostic C:\BuildAgent\work\3d88535fb04ef4eb\test\MP.Common.EnvironmentConfiguration.Test\MP.Common.EnvironmentConfiguration.Test.csproj
[17:48:58] : [Step 2/6] No test is available in C:\BuildAgent\work\3d88535fb04ef4eb\test\MP.Common.EnvironmentConfiguration.Test\bin\Release\net46\MP.Common.EnvironmentConfiguration.Test.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.
@mbenua-mparticle fixed here. It is not in the master branch yet
I don't have any permissions to download that zip file. Do you know when it will be in master, @NikolayPianikov ?