TestDriven.Net 3.0 Alpha – Support for Visual Studio 2010 Beta 2

For the best part of a week, I’ve been battling with the Visual Studio 2010 Beta 2 extensibility model. I’m happy to report that - finally - I’ve managed to make it bend to my will. ;-)

 vs2010b2

At this point I’ve decided to fork TestDriven.Net 2.x and 3.x. Going forward, TestDriven.Net 3 will support Visual Studio 2010, 2008 & 2005. TestDriven.Net 2 will continue to support Visual Studio 2008, 2005 & 2003. They will be developed in parallel until the RTM versions of Visual Studio 2010 and TestDriven.Net 3.0 are released. I will then focus my energy on TestDriven.Net 3.x.

With TestDriven.Net 3.0 Alpha, you can expect the Visual Studio 2008 & 2005 support to be stable.

In order to support Visual Studio 2008 Beta 2, I’ve needed to do a number of pretty gruesome workarounds. One of these workarounds involves repainting TestDriven.Net’s command bar button icons each time Visual Studio starts (Beta 2 doesn’t persist them). All previous versions of TestDriven.Net have activated themselves on demand rather than on startup (when Visual Studio loads). This meant installing TestDriven.Net had no impact on Visual Studio startup times.

If you’re sensitive to Visual Studio startup times, it’s still possible to make TestDriven.Net activate on demand in Visual Studio 2010. Simply uncheck the ‘Startup’ box next to TestDriven.Net in the ‘Add-in Manager’. Be warned, however, that TestDriven.Net’s command bar buttons pictures will appear blank until the first time they’re used.

startup2010

For the ‘Test With > Coverage’ functionality to work with .NET 4.0, you’ll need to install NCover 3.2 or higher (see here). You can also use ‘Test With > Team Coverage’ if you’re running Visual Studio 2010 Premium or higher.

team2010

You can download TestDriven.Net 3.0 Alpha from here.

Published Tuesday, October 27, 2009 4:20 PM by Jamie Cansdale

Comments

# re: TestDriven.Net 3.0 Alpha – Support for Visual Studio 2010 Beta 2

Will this work with 2010 Beta 2 Express?

Express does have an "Extensions" menu item....

Monday, November 02, 2009 7:25 AM by Dave

# re: TestDriven.Net 3.0 Alpha – Support for Visual Studio 2010 Beta 2

It seems to run all tests with .Net Framework 4.0 when running under Visual Studio 2010 even if the tests were compiled for .Net Framework 2.0.

Unfortunately this is a problem for me.

In Gallio, I solved this issue by checking the runtime version of the compiled assembly so that it can start an isolated test host process with the right framework version (using COMPLUS_Version).  Unfortunately this doesn't help TestDriven.Net because it is responsible for creating its own test process.

Wednesday, November 04, 2009 2:05 AM by Jeff Brown

# re: TestDriven.Net 3.0 Alpha – Support for Visual Studio 2010 Beta 2

I've been looking forward to this - thanks for getting an alpha version out the door so quickly. I've been playing with VS2010 Beta2 and my biggest complaint has been that my preferred unit test tools weren't available yet.

Wednesday, November 04, 2009 3:33 AM by Mike Harges

# re: TestDriven.Net 3.0 Alpha – Support for Visual Studio 2010 Beta 2

@Dave I'm afraid there's no Express support in this version. The hooks I was using in previous versions are now gone.

Wednesday, November 04, 2009 7:12 AM by Jamie Cansdale

# re: TestDriven.Net 3.0 Alpha – Support for Visual Studio 2010 Beta 2

@Jeff Good point. This is the first version of Visual Studio where you can easily compile for different .NET runtimes.

In a future version I will check the runtime version of the compiled assembly like you're doing in Gallio.

As a workaround in the current version, you could add frameworkVersion="v2.0.50727" to the <testRunner name="Debug" .. /> and <testRunner name="RunTests" .. /> elements in '\Program Files\TestDriven.NET 3\TestDriven.dll.config'.

Wednesday, November 04, 2009 7:21 AM by Jamie Cansdale

# re: TestDriven.Net 3.0 Alpha – Support for Visual Studio 2010 Beta 2

I tried running 3.0 Alpha with VS 2010 RC and it seems to work, but I do not get Test With > Team Coverage, although I am running Ultimate SKU of VS 2010...

Tuesday, February 23, 2010 1:53 AM by Srdjan

# re: TestDriven.Net 3.0 Alpha – Support for Visual Studio 2010 Beta 2

@Srdjan Thanks for letting me know. I've just fixed VS 2010 coverage support in TestDriven.Net 3.0 Beta (which you can download now). Please let me know how you get on.

Wednesday, February 24, 2010 12:46 PM by Jamie Cansdale

# re: TestDriven.Net 3.0 Alpha – Support for Visual Studio 2010 Beta 2

Hi Jamie,

It seems that I'm experiencing the same problem as Srdjan, except that I'm using TestDriven.NET 3.0 Beta 2. If I select "Test With->Coverage" I get the message "Testing Started" followed by "0 Passed, 0 Failed, 0 Skipped" and no coverage window. With "Test With->NCover" nothing happens. It does not matter whether I try this on a single unit test, a class or project. Could it have something to do with the fact that I'm running VS 2010 RC on Windows 7?

Wednesday, March 31, 2010 3:22 PM by Stig

# re: TestDriven.Net 3.0 Alpha – Support for Visual Studio 2010 Beta 2

@Stig - I think the problem is your installed version of NCover has expired. TD.Net should display a warning, but this doesn't work when executing all tests in a project (this will be fixed in TD.Net 3.0 RC). Try executing just one test with NCover and see if the warning appears.

Thursday, April 01, 2010 2:14 PM by Jamie Cansdale

# re: TestDriven.Net 3.0 Alpha – Support for Visual Studio 2010 Beta 2

It was certainly interesting for me to read this article. Thanx for it. I like such themes and everything connected to this matter. I definitely want to read more soon.

Kate Swenson

<a href="www.baccaratgirls.com/">london vip escorts</a>

Monday, December 13, 2010 5:48 PM by Kate Swenson

# re: TestDriven.Net 3.0 Alpha – Support for Visual Studio 2010 Beta 2

Rather nice blog you've got here. Thanx for it. I like such topics and everything connected to this matter. I would like to read a bit more on that blog soon.

Hilary Hakkinen

<a href="rome-escort.info/">gabry roma escort</a>

Friday, December 17, 2010 2:38 AM by Hilary Hakkinen

# re: TestDriven.Net 3.0 Alpha – Support for Visual Studio 2010 Beta 2

Rather interesting blog you've got here. Thanx for it. I like such themes and everything that is connected to them. I definitely want to read a bit more on that blog soon.

Julia Simpson    

<a href="milanescorts.com/">citta studio milano escort girl</a>

Monday, February 28, 2011 7:32 PM by Julia Simpson

# re: TestDriven.Net 3.0 Alpha – Support for Visual Studio 2010 Beta 2

Hello Everyone! I like watching BBC Football online.

Monday, April 11, 2011 9:29 PM by football

# re: TestDriven.Net 3.0 Alpha – Support for Visual Studio 2010 Beta 2

Son of a gun, this is so helfpul!

Thursday, August 18, 2011 2:45 AM by Margery

# re: TestDriven.Net 3.0 Alpha – Support for Visual Studio 2010 Beta 2

If you're radiosensitive to Seeable Flat start nowadays, it's relieve doable to alter TestDriven.Net activate on status in Seeable Flat 2010. But uncheck the 'Startup' box close to TestDriven.Net in the 'Add-in Manager'. Be warned, still, that TestDriven.

Monday, January 23, 2012 12:11 AM by mazapoint

# re: TestDriven.Net 3.0 Alpha – Support for Visual Studio 2010 Beta 2

Is there a way to run specific tests within a class, or will it always run all test that aren't marked ignore? I need something that will allow me to run a subset of tests within a class.

Wednesday, January 25, 2012 6:51 PM by ChrisC

Leave a Comment

(required) 
(required) 
(optional)
(required)