-
Notifications
You must be signed in to change notification settings - Fork 152
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
.NETStandard test assemblies are not supported by this version of the engine #1195
Comments
Does your .NET Standard assembly reference the NUnit framework? NUnit's definition of a "test assembly" is any assembly, which references the framework. If such an assembly is under your control, you can make it into a non-test assembly by use of the |
Hi Charlie, Our .Net Standard assemblies do not reference nunit, which is why I'm finding it odd that this error is occurring. |
I notice you are using 3.10, which is quite old. Can you use a newer version? Preferably 3.15.0? |
I noticed the same and so I've just updated to 3.15.2 and get a similar, though slightly different error:
Unfortunately this new error no longer says which assemblies it finds unsupported. |
OK. I'll look at the code. It may be that the check is in the wrong place, since every assembly has to be examined in order to determine if it's a test assembly. Meanwhile, I suggest defining and adding your own attribute with the full name |
Just to note I edited my previous comment to clarify about the error, sorry if that caused confusion. |
Hi @CharliePoole , After upgrading to 3.15 from 3.10 to try to debug this issue, our unit and integration tests in our main branch (which does not have this .net standard project) went from taking under 20 minutes to timing out after 40 minutes. Do you want me to raise that performance issue as a separate issue, or are there some settings differences (such as parallelism?) that might have caused that? Regarding this issue, if time permits I'll try to build and run nunit-console to catch where exactly we're seeing the error and whether we can recreate a minimum test case for you without our full solution. Kind regards, |
Hi @CharliePoole , Just to let you know the performance regression was due to a parallism change which we have resolved. On the initial error, I am working on reproducing a small test case although I am finding it difficult to run my own custom built version because I am having trouble getting it to load the vsprojectloader addon which it requires. |
@rcocks-hl If you are building from current source, rather than the 3.15 source, then the project loader extension won't work. It has not yet been updated to use the 4.0 interface. If you're using the 3.15 source, it ought to work. |
Hi @CharliePoole , Thank you for pointing out that the version 4 does not support the visual studio loader. Using the 3.15.2 release branch I still had trouble loading the addins when trying to run the build that outputs to the net6.0 folder but was able to reproduce the problem using the build that outputs to the net35 folder. In that, I get the same error as when I run with the 3.15.2 release nuget package. Debugging it, it looks like this block in
The We find it surprising that Also to be clear in this case, it is not the test assemblies themselves that are |
@rcocks-hl It sounds as if this is still an issue in 3.15.2 then. I'll try to confirm it with an example. Meanwhile, if you want to run using the solution file, I suggest using the workaround of defining your own NonTestAssembly attribute in the assembly, which is causing a problem. |
HI @CharliePoole, Did you manage to confirm this bug? |
@rcocks-hl Seems that I lost track of this issue but fixed another one, which describes the same problem, #1182. It's in the 3.16 release, which just came out a few hours ago. Give that a try and let me know if it works and if so I'll close this one as well. |
Hi @CharliePoole , Thanks for getting back to me. I don't have my reproduction case ready to test right now but reading up on that issue I'm happy for you to close this as a duplicate and I'll create a new issue if I do encounter one in my testing of 3.16. |
Hi,
I'm having an issue where trying to running nunit3-console is failing with the error
.NETStandard test assemblies are not supported by this version of the engine
.However the tests themselves are all framework, and the .net standard assembly it complains about isn't a test assembly, but merely referenced from the (.net Framework) test assembly.
It is my understanding that .net framework should be able to reference .net standard, and I expected nunit3-console to support tests which are written in framework test project referencing a .net standard assembly.
The unit tests run fine from visual studio and it is only the console runner that is having an issue.
The text was updated successfully, but these errors were encountered: