-
Notifications
You must be signed in to change notification settings - Fork 12
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
Does this support team city and net core? #29
Comments
Further, I tried executing the exe manually and I get the following:
Adding this to my project didn't seem to fix anything (there isn't even a v4.2.0.0 so I did 4.3.0) |
I have finally found that TeamCity.VSTest.TestAdapter will give me a more detailed error:
(note, 2 steps are disabled which is why you may noticed step 6/6) but I only mentioned 4 steps. |
Hi @Dev123213, In the first post, you get the error "No assemblies were matched - no tests will be run!". This is because you are specifying an absolute path, which as discovered in #27 is not supported yet. Until I've had time to fix that, I would recommend changing to a relative path, ie The third post makes me wonder what version of the plugin you are using? The error you are seeing in your last comment looks like one that occurred in a fork of the plugin. While that is still published on the Teamcity plugins page, it is by now quite old and has a few bugs. But even fixing those two issues, I think your second post shows the error that will happen when the two other are resolved. The current (2.2) release of xUnit does not support .net core, as seen in the compatibility matrix. I'm not sure when 2.3 will hit a full release, but there will likely be a few other changes required to support the new runner. |
Hi Carl, thanks for getting back to me promptly. I have fixed the path, and am using the most recent plugin version advertised here (1.2) https://github.com/carlpett/xUnit-TeamCity/releases/tag/v1.2.0. To clarify your last paragraph, xunit does support .net core (https://xunit.github.io/docs/getting-started-dotnet-core.html), but the plugin for team city does not? If so, I will have to abandon xunit for now as we want net core. |
Ok, that is good to know. I'll see if I can recreate it. The line numbers in the stack trace don't seem to match the code, though, which is confusing.... xUnit supports .net core in their beta releases, yes, but there is no supported version with a finalized way of running it yet (it has changed between different beta versions, as I understand it). So I'm a bit wary of integrating it before that has settled down. One thing you could do as a workaround until this is supported would be to add a "Command line" build step and run |
I have a class library:
Csproj:
nugets:
Microsoft.NET.Test.Sdk, xunit, xunit.runner.console, microsoft.netcore.app
Team city build config:
All I get is:
I am unable to get anywhere. I have tried changing nuget versions to 2.2.0 for all, as well as all the pre-releases, and different configurations inbetween.
The text was updated successfully, but these errors were encountered: