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 2, 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 4, 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 4, 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 4, 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 4, 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 1, 2010 2:14 PM by Jamie Cansdale

# 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

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

Yeah, it happens sometimes ... Nothing special.

Tuesday, March 27, 2012 10:06 AM by Jordan

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

You will find A-list celebrities such as Sarah Jessica Parker, Janet Jackson and Nicole Kidman wearing cheap new era hats. Since it's conception, the red bull new era hats has been produced into a variety of designs, colors, shapes, and styles that have won top picks of millions of women the world over. You are sure to find something of your liking when shopping from either a new era baseball hats store or outlet for. Many of the listed cincinnati reds hats found in the main stores or department stores can be found in the outlets, so get out there and start shopping!

Thursday, April 26, 2012 5:58 AM by drbt52@yahoo.cn

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

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

Sunday, August 26, 2012 2:08 AM by Letterheads Printing

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

5oWIba Really informative article.Thanks Again. Much obliged.

Tuesday, September 11, 2012 3:22 PM by crork

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

FOLLOW G STREET CHRONICLES, THE LEADER IN URBAN PUBLISHING! WWW.GSTREETCHRONICLES.COM

Monday, October 15, 2012 4:03 AM by Site 1001bonnesaffaires

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

Great, thanks for sharing this article post.Really looking forward to read more. Really Cool.

Tuesday, October 16, 2012 3:07 PM by herbalife programs

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

Enjoyed every bit of your post.Much thanks again. Cool.

Thursday, October 25, 2012 5:00 AM by picture to cartoon

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

Very neat article post.Really looking forward to read more. Much obliged.

Monday, October 29, 2012 7:35 AM by parfumuri ieftine

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

Enjoyed every bit of your article post.Much thanks again.

Monday, October 29, 2012 9:29 PM by ways to lose weight

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

Thanks-a-mundo for the blog.Thanks Again. Will read on...

Friday, November 2, 2012 1:18 PM by method for approaching women

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

Awesome post. Cool.

Sunday, November 4, 2012 7:28 PM by fascia

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

Appreciate you sharing, great article.Thanks Again. Great.

Sunday, November 25, 2012 12:05 PM by Online Market Research Course

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

good article I like this blog so much

Friday, January 25, 2013 5:19 AM by Pakistani

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

awesome sharing and really nice article I appreiate it

Friday, January 25, 2013 5:29 AM by Girl