How to debug mbunit/Gallio unit tests in visual studio
Asked Answered
K

3

9

I am trying to figure out how I can hit breakpoints in my unit tests that are written with MbUnit/Gallio. I tried running Gallio.Icarus, attaching vs debugger to it, the breakpoints weren't hit. Next I tried to start Gallio.Echo from project properties, but I was getting an error message, after supplying the dll, saying only .exe's can be tested. The unit test runs fine from Gallio.Icarus, however, I am unable to debug them.

Thanks!

Kephart answered 5/5, 2009 at 15:25 Comment(0)
A
11

Grab Gallio v3.0.6 Update 1. Load up your tests and click on the shiny new "Debug" button in the Icarus GUI itself.

Aeri answered 5/5, 2009 at 18:9 Comment(0)
G
5

I would use TestDriven.Net for this. It supports MbUnit tests, and you can debug by simply right clicking from within Visual Studio

Gender answered 5/5, 2009 at 15:37 Comment(0)
R
2

A much better answer is found here: gallio test runner plugin to visual studio 2010

The answer is to add the following section to your *.csproj file the after the <ProjectGuid> section section:

    <ProjectTypeGuids>
        {3AC096D0-A1C2-E12C-1390-A8335801FDAB}
      ; {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
    </ProjectTypeGuids>

See Also:
How Does Visual Studio Identiy test projects?
A list of supported VS2010 project types
Second list of GuIDs for supported project types

Richthofen answered 4/12, 2012 at 3:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.