So, I Installed Gallio 3.14 latest build for x64 on my machine which has .NET
4.5 and I chose “Complete” install option.
(Note: Now when one installs .NET 4.5 the assemblies are replaced in place of
.NET 4.0)
When I loaded a project that is configure to build for .NET 4.0 that has a
bunch of test cases and which uses the .net Moq framework the test cases are
not showing up in the “Test View” of Visual Studio.
Out of curiosity, I got the code and started debugging and it looks like
MakeType call for “ExtensionAttribute” in System.Core.dll is failing and
throwing not supported exception which I believe is the root cause of the
problem.
When I looked at System.Core.dll @
“C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Core.dll” it does not
seem to contain “ExtensionAttribute”. However when I looked at
System.Core.dll at “C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll” it does
contain “ExtensionAttribute”
I believe this discrepancy is causing the test cases to not show up VS2010
“Test View” and has to do with which version of .NET you target when you
compile and package “Gallio”.
And I am able to see the tests when I built Gallio myself and deployed it on
the same machine.
To repro this problem:
Install Gallio 3.14 on a machine with VS2010
Clone https://git01.codeplex.com/nerddinner
Open the solution file under the “mvc3” folder under “NerdDinner” using
VS2010
Build the solution with “Test View” in VS2010 active
It has a project called “NerdDinner.Tests” which contains the tests and
they should appear in “Test View” but they don’t.
Original issue reported on code.google.com by arashe...@gmail.com on 27 Mar 2013 at 4:58
Original issue reported on code.google.com by
arashe...@gmail.com
on 27 Mar 2013 at 4:58