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

Missing .NET Core version of AppVeyor logger for vstest.console #1601

Open
jariq opened this issue Jun 9, 2017 · 0 comments
Open

Missing .NET Core version of AppVeyor logger for vstest.console #1601

jariq opened this issue Jun 9, 2017 · 0 comments

Comments

@jariq
Copy link

jariq commented Jun 9, 2017

I am using Visual Studio 2017 image and I tried to run my tests with .NET Core and its vstest.console with the following command:

C:\projects\pkcs11interop>dotnet vstest .\src\Pkcs11Interop.NetStandard\Pkcs11Interop.DotNetCore.Tests\bin\Release\Pkcs11Interop.DotNetCore.Tests.dll /logger:AppVeyor
Microsoft (R) Test Execution Command Line Tool Version 15.0.0.0
Copyright (c) Microsoft Corporation.  All rights reserved.

Could not find a test logger with URI or FriendlyName 'AppVeyor'.

Seeing that vstest.console included with .NET Core SDK 1.0.4 was unable to find AppVeyor logger I decided to shamelessly copy Appveyor.BuildAgent.Api.dll and Appveyor.MSTestLogger.dll from VS2017 installation with following command:

copy "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow\Extensions\AppVeyor*" "C:\Program Files\dotnet\sdk\1.0.4\Extensions"

After that vstest.console was able to find the logger but displayed exception anytime the logger was used:

C:\projects\pkcs11interop>dotnet vstest .\src\Pkcs11Interop.NetStandard\Pkcs11Interop.DotNetCore.Tests\bin\Release\Pkcs11Interop.DotNetCore.Tests.dll /logger:AppVeyor
Microsoft (R) Test Execution Command Line Tool Version 15.0.0.0
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...
NUnit Adapter 3.8.0.0: Test execution started
Running all tests in C:\projects\pkcs11interop\.\src\Pkcs11Interop.NetStandard\Pkcs11Interop.DotNetCore.Tests\bin\Release\Pkcs11Interop.DotNetCore.Tests.dll
NUnit3TestExecutor converted 729 of 729 NUnit test cases
Error sending test '_001_NullUri' results to AppVeyor: System.IO.FileNotFoundException: Could not load file or assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified.
File name: 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
   at Appveyor.BuildAgent.Api.RestBuildServices.AddTest(String testName, String testFramework, String fileName, Nullable`1 outcome, Nullable`1 durationMilliseconds, String errorMessage, String errorStackTrace, String stdOut, String stdErr)
   at Appveyor.MSTestLogger.Logger.TestResultHandler(Object sender, TestResultEventArgs e)
...

Problem can be seen in this sample build. I am guessing that AppVeyor logger for vstest.console needs to be rebuilt for .NET Core. Please let me know if I can help with that.

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

1 participant