rahulpandey87 / mb-unit

Automatically exported from code.google.com/p/mb-unit
1 stars 0 forks source link

Gallio throws Exception running MSTest tests produced by Visual Studio 2010 #713

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Import a Visual Studio 2010 project with MSTest test defined
2. Run the tests

What is the expected output? What do you see instead?
# FileVersion: 1.0.0.0
# Product: CommunicationServices.Tests
# Title: CommunicationServices.Tests
# Version: 1.0.0.0
# Framework: MSTest v10.0.0.0
# File: 
C:\USERS\PAUL_PARSONS\workspace\RCS2002GUIPoC\RiskUI\CoreServices\CommunicationS
ervices.Tests\bin\Debug\CommunicationServices.Tests.DLL
Loading C:\Documents and Settings\uK798197\Local 
Settings\Temp\Gallio\MSTestAdapter\mrtdvwgc.txv\tests.runconfig...
Loading C:\Documents and Settings\uK798197\Local 
Settings\Temp\Gallio\MSTestAdapter\mrtdvwgc.txv\tests.vsmdi...

Search path(s) for tests:
C:\USERS\PAUL_PARSONS\workspace\RCS2002GUIPoC\RiskUI\CoreServices\CommunicationS
ervices.Tests\bin\Debug
C:\Documents and Settings\uK798197\Local 
Settings\Temp\Gallio\MSTestAdapter\mrtdvwgc.txv
Search path(s) for default test settings:
C:\Documents and Settings\uK798197\Local 
Settings\Temp\Gallio\MSTestAdapter\mrtdvwgc.txv

C:\Documents and Settings\uK798197\Local 
Settings\Temp\Gallio\MSTestAdapter\mrtdvwgc.txv\tests.vsmdi
Exception has been thrown by the target of an invocation.

What version of the product are you using? On what operating system?
Gallio 3.2 Build 517

Please provide any additional information below.
The vsmdi format has changed in VS 2010 but the MSTestRunner2010 class doesn't 
override the method WriteTestMetaData

internal class MSTestRunner2010 : MSTestRunner2008
    {
        protected override string GetVisualStudioVersion()
        {
            return "10.0";
        }

        protected override string GetCommandLineAssemblyName()
        {
            return "Microsoft.VisualStudio.QualityTools.CommandLine, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";
        } 

Original issue reported on code.google.com by pparsons...@gmail.com on 25 Aug 2010 at 11:23

GoogleCodeExporter commented 8 years ago
See 
http://stackoverflow.com/questions/94057/using-resharper-unit-test-runner-for-ms
test-via-gallio/95617#95617

Original comment by pparsons...@gmail.com on 25 Aug 2010 at 11:29

GoogleCodeExporter commented 8 years ago
Not at all sure it's the XML file anymore. I managed to reproduce it with the 
EmployeeTracker example from the Microsoft website.

I suspect it's something to do with loading the dynamic DLLs from the MS 
testing framework.

Original comment by pparsons...@gmail.com on 7 Sep 2010 at 3:37