jeudi 4 août 2016

Problems Running AutoFixture xUnit Theory After Upgrading Project to NuGet 3.0

I have encountered a problem with AutoFixture and have submitted a GitHub issue for it. However, doing some searching on here there appears to be a few questions that are similar to my issue (but do not solve it) so I wanted to ask on here for greater visibility.

The problem is this: I recently upgraded my NuGet 2.0 projects (packages.config) to NuGet 3.0 (project.json -- NOT to be confused with ASP/.NET Core's project.json). Everything made the jump except for a particular set of tests:

Those tests that utilize and are decorated with AutoFixture's AutoData (or InlineAutoData) theories.

I have created a very simple reproduction of this issue and that can be found here: http://ift.tt/2avyCFx

(Please note the name reflects an initial impression that the problem was ReSharper related, but it indeed affects both it and the native VS unit test runner.)

You can try to build the solution and should find that it builds OK, but tests are found neither in ReSharper's test runner nor the native VS test runner (please note I am running VS 2015 Update 3).

However, commenting out these lines and rebuilding should successfully discover all tests as expected.

This is a headscratcher and is a blocker for me to continue. Is there a consideration I am overlooking? FWIW, I have cleared out my %TEMP%\VisualStudioTestExplorerExtensions as suggested in the xUnit documentation and it has not worked, either.

Any assistance would be greatly appreciated!

Aucun commentaire:

Enregistrer un commentaire