Open cseymr opened 7 years ago
Current release version only supports MSTest, Latest prerelease version supports XUnit. Go to https://github.com/axodox/AxoTools/releases and check latest xNUnitSupport build.
Thanks, Péter. The latest version recognises the tests and can run them; but 'Cover' gets stuck on 'Initializing test runner...' Let me know what information I can send you if you need it.
I used version VS2017Support-1.1.57, however no Xunit tests are found.
Note that I'm using a netcoreapp1.1
for the tests.
For my project see https://github.com/StefH/System.Linq.Dynamic.Core
.Net core is not yet supported. It will come depending on how much free time I have, which is not much as of now.
@craigseymour I have made some significant changes which addressed issues resulting in same behavior as you described. Can you try latest xNUnitSupport release? Maybe it helps you too...
Using xNUnitSupport-1.1.68 in VS2017 no tests are found for this project: https://github.com/aspnet/Microsoft.Data.Sqlite which uses xunit tests.
Json style projects and .Net core is not supported yet, it is planned after next major update.
Currently OpenCover only support full pdbs - https://github.com/OpenCover/opencover/issues/601 We do have wip that supports portable and we are looking at supporting embedded PDBs (once we have the latter working then we will look to make a new release)
Great, by that time I should also have the xUnit, NUnit, MSTestV2 changes finished and released, so I can work on the .Net Core support. This will also require changes in AxoCover since the VS API to query these projects is different and I also need to make my test host .Net Core capable.
xUnit stuff is now working great for us (bar some non-fatal errors about not being able to find runner.json files that we're not using). Thanks, Péter.
I will comment that if it would be interesting. I had problems with an assembly that is .net standard, because it wasn't covered by the tests. This is because in the properties of the project, in build options, in the button of advanced options, the PDBs was set as portable. When I changed that to full, then the assembly was added to the results of the tests.
Perhaps with .net Core it happens the same, that you have to change the PDBs to full.
Ms just released netstandard/core 2 which is much more complete and stable, so hopefully we'll see Core support soon... ☺️
I found the same problem because I am using the netcore2.0. Hope for this festure.
xUnit stuff is now working great for us (bar some non-fatal errors about not being able to find runner.json files that we're not using). Thanks, Péter.
Is that also working for .NET Standard 2 for you? I got this (not sure if that's the expected result for now):
Hi, I am sorry to say it, but I decided to hold off the .Net Core work for now.
Unfortunately I really don't have the free time required to support so many test frameworks and platforms by myself while they keep changing (along with Visual Studio updates). So I will stick with supporting what I actually need at work and some of the things people ask which still fit in the timeframe I am willing to put into it.
If you have more time than me, I am willing to give help to support .Net Core in AxoCover. So please tell and I will brief you on what has to be done.
There is a chance I will work with .Net Core next year, if that happens I will likely bring support for it at that time (might be half to one year from now).
This is a duplicate of #9. Would recommended to close one of the issues.
Hi @axodox. In reference to your comment, can you describe the detail and scope of the work that needs to be done in order to fully support .NET Core 2.x based on .NET Standard 2.0? If it's inconvenient to do so here, please send to me at dexter[dot]valkyrie[at]outlook.com.
Thanks!
Hi @skynode. I made a list for you below:
Yes, as you see, best would be to refactor the code first (not that it is ugly, but it has some solutions currently which I want to replace, as they are hard to maintain - also I have more experience with these test frameworks now), to make the integration simpler. For now I suggest you to try the first step: get it working with OpenCover directly. And find out what needs to be done there. If and when that is OK, I will do some refactoring and then we can select a solution, be it vstest, dotnet test, or a ported AxoCover.Runner. Then we can split up the work and do it.
@axodox will this https://github.com/tonerdo/coverlet/ be helpful? Problem with OpenCover is it does not use portable pdb.
Is anyone actively working on this? I don't know how much time I could dedicate to adding Core support, but I'm willing to make a start, if no one else has
Seems like it's not coming 😔
Sorry, this isn't quite the right place to ask this, but it might turn out to be a documentation issue, so... :-)
I'm missing a really obvious step. Axocover is saying 'Hmm.. AxoCover found no unit tests...' in the Tests panel, but I do have some in the Solution - as per screenshot. Using Xunit, if that makes any odds.