joaquimcid / mb-unit

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

MSTest v10.1 is not supported #833

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install Visual Studio SP1 
2. Write tests using MSTest
3. Try to run them with Gallio

What is the expected output? What do you see instead?
I expect to see the tests run, but get the following exception:
System.NotSupportedException: MSTest v10.1 is not supported at this time.
   at Gallio.MSTestAdapter.Wrapper.MSTestRunner.GetRunnerForFrameworkVersion(Version frameworkVersion)
   at Gallio.MSTestAdapter.Model.MSTestController.RunTest(ITestCommand testCommand, TestStep parentTestStep, IProgressMonitor progressMonitor)

What version of the product are you using? On what operating system?
3.2 build 749 on Windows XP, with Visual Studio 2010 SP1

Please provide any additional information below.

SP 1 has version 10.1.0 of Microsoft.VisualStudio.QualityTools.UnitTestFramework

In src/Extensions/MSTest/Gallio.MSTestAdapter/Wrapper/MSTestRunner.cs
it only checks for version 10.0

if (frameworkVersion.Major == 8 && frameworkVersion.Minor == 0)
                return new MSTestRunner2005();
            if (frameworkVersion.Major == 9 && frameworkVersion.Minor == 0)
                return new MSTestRunner2008();
            if (frameworkVersion.Major == 10 && frameworkVersion.Minor == 0)
                return new MSTestRunner2010();

Original issue reported on code.google.com by mart...@gmail.com on 6 Apr 2011 at 1:18

GoogleCodeExporter commented 8 years ago
The same happens on Windows 7, 64 bit. Everything work's fine without VS 2010 
SP-1 installed.

Original comment by heroes...@gmail.com on 26 May 2011 at 7:11

GoogleCodeExporter commented 8 years ago

Original comment by Yann.Tre...@gmail.com on 26 May 2011 at 7:21

GoogleCodeExporter commented 8 years ago
Hello,

I realize this thread is over a year old but we're getting the same error 
message (see below)

Can anybody help please?

14:18:51.238 INFO  .u.c.CommandExecutor - Gallio Echo - Version 3.4 build 11
14:18:51.238 INFO  .u.c.CommandExecutor - Get the latest version at 
http://www.gallio.org/
14:18:51.254 INFO  .u.c.CommandExecutor - 
14:18:51.379 INFO  .u.c.CommandExecutor - Start time: 2:18 PM
14:18:51.394 INFO  .u.c.CommandExecutor - Initializing the runtime and loading 
plugins.
14:18:52.519 INFO  .u.c.CommandExecutor - Verifying test files.
14:18:52.801 INFO  .u.c.CommandExecutor - Initializing the test runner.
14:18:52.832 INFO  .u.c.CommandExecutor - Running the tests.
14:18:59.410 INFO  .u.c.CommandExecutor - [error] Assembly [our assembly].Tests
14:18:59.410 INFO  .u.c.CommandExecutor - Internal Error
14:18:59.410 INFO  .u.c.CommandExecutor - System.NotSupportedException: MSTest 
v10.1 is not supported at this time.
14:18:59.410 INFO  .u.c.CommandExecutor -    at 
Gallio.MSTestAdapter.Wrapper.MSTestRunner.GetRunnerForFrameworkVersion(Version 
frameworkVersion)
14:18:59.410 INFO  .u.c.CommandExecutor -    at 
Gallio.MSTestAdapter.Model.MSTestController.RunTest(ITestCommand testCommand, 
TestStep parentTestStep, IProgressMonitor progressMonitor)
14:18:59.410 INFO  .u.c.CommandExecutor - 
14:18:59.614 INFO  .u.c.CommandExecutor - Internal error: An unhandled 
exception occurred.
14:18:59.614 INFO  .u.c.CommandExecutor - System.AppDomainUnloadedException: 
Attempted to access an unloaded AppDomain.
14:18:59.614 INFO  .u.c.CommandExecutor - 

Original comment by Lydie.Co...@tdassurance.com on 21 Sep 2012 at 9:51

GoogleCodeExporter commented 8 years ago
Hello,

are there any plans for a fix for this issue?  Is there a workaround?

Original comment by Lydie.Co...@tdassurance.com on 28 Sep 2012 at 12:30

GoogleCodeExporter commented 8 years ago
Any updates on this guys?

Original comment by tadeuren...@gmail.com on 12 Apr 2013 at 9:19

GoogleCodeExporter commented 8 years ago
Is this something the next version of Gallio going to solve quickly? A lot of 
developers already migrated to Visual Studio 2012. The Gallio Extension code 
here still only allows MSTest v10.0. 

Original comment by tie...@gmail.com on 26 Jul 2013 at 9:20

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I managed to get around this by instead of referencing the visual studio 
installed version of the unit test framework, referencing a specific version of 
a binary that is copied into lib folder for the project

i.e. copy the 10.0 version into a library folder relative to your project
lib/Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll 
v10.0.30319.1

Original comment by toml...@teamsean.co.nz on 25 May 2015 at 9:46

GoogleCodeExporter commented 8 years ago
I have made my Gallio Icarus to work with VS2012 tests.

Original comment by v.husnul...@gmail.com on 26 May 2015 at 2:02