tkpatro123 / mb-unit

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

Visual Studio Test integration fails when MSpec plugin is used (Echo/Icarus ok) #887

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install Gallio 3.3.1 64-bit
2. Create a Test project
3. Add a reference to the Gallio NuGet package
4. Add a refernece to the MSpec NuGet package
5. Create a simple MSpec test:

[Subject("Test")]
public class when_doing_something
{
    public Because of = () => {};
    public It should_do_something = () => {};
}

6. Copy Machine.Specifications.dll and Machine.Specifications.GallioAdapter.* 
to %GALLIO_HOME%\bin\MSpec
7. Execute "Gallio.Utility ClearCurrentUserPluginCache" from the command line
8. Restart Visual Studio
9. Using Visual Studio, run all tests in the project

What is the expected output? What do you see instead?

MSpec test should run.

No tests run, VS reports the following error in the output:

    Error loading (path_to_assembly): An exception occurred while invoking a test driver.

What version of the product are you using? On what operating system?

Gallio 3.3.1 (msi)
MSpec 0.5.6
Windows 7 SP1 64-bit
Visual Studio 2010 SP1

Please provide any additional information below.

Previous to executing ClearCurrentUserPluginCache, the MSpec tests would run in 
Echo/Icarus but were not detected in Visual Studio.

Adding an MbUnit test executed both MbUnit/MSpec tests in Echo/Icarus but only 
MbUnit in Visual Studio.

Original issue reported on code.google.com by richard....@gmail.com on 7 Jun 2012 at 11:01