Los Techies : Blogs about software and anything tech!

Updated TDD Productivity Plug-in for Resharper


 

I first want to thank JetBrains for being pretty awesome.  I have complained a lot about how they are constantly chaining their APIs to Resharper and as a result it makes keeping plugins very hard to maintain but they went way out of their way to help.  I received and email from one of their developers offering to help on my plugin.  Their was a change made in the latest version of resharp which made my plugin incompatible  and their telemetry showed them a pattern with this problem.  Just this week they made a commit to the source code and updated the project.  I did not have the time to get into the internals of this change and I was really motivated by their help.

As a result, if you were using the plugin I recommend you download the latest version and install it!

Download it Here

For those of you who do not use it yet I will run down the features that are available.

1. Code forward, create a class in a referenced project.

When prompted with Quick Fixes for a non-existent class You get the following menu.  This adds menu items to create the class in all referenced projects.( If this menu does not show up… you may need to add the project references to you unit test project).

 

image

After selecting a menu item.  The class is created in the project you selected but the IDE stays in your test class.  And you are prompted with the quick fix for adding the using for your classes namespace.

image

 

The class file is created in the corresponding project under the correct folder and namespace.  It is that easy!

image

 

 

2. Move Class/Interface to referenced project

If you prefer working with your Class or Interface under test in the same file as your test class and move the class to your referenced project after you get your tests passing this feature will reduce the number of steps it takes to move the class to the referenced project. This eliminates the need to fumble around in the Solution Explorer window.

image

Kick It on DotNetKicks.com
Posted Jun 30 2009, 11:41 PM by erichexter

Comments

Reflective Perspective - Chris Alcock » The Morning Brew #380 wrote Reflective Perspective - Chris Alcock » The Morning Brew #380
on 07-01-2009 3:26 AM

Pingback from  Reflective Perspective - Chris Alcock  » The Morning Brew #380

Henning Anderssen wrote re: Updated TDD Productivity Plug-in for Resharper
on 07-01-2009 3:57 AM

Genious!!

Just what I've been looking for. Thank you so much :D

Krzysztof Kozmic wrote re: Updated TDD Productivity Plug-in for Resharper
on 07-01-2009 6:35 AM

One feature that the R# does not have, and I think would fit the plugin well would be something that could be called "adjust namespace"

If you for example move many files around in the project or rename a solution folder, all the files are in namespaces that does not reflect these changes. It would be great if you could update this for all the affected files at once.

Rod Claar wrote re: Updated TDD Productivity Plug-in for Resharper
on 07-01-2009 10:46 AM

Wow, thanks Eric.  This is a must have for serious developers.

I can't wait to include it in my TDD course!

http://EffectiveAgileDev.com

on 07-01-2009 7:48 PM

ASP.NET/Web Programming Three IIS Concepts ASP.NET Developers Should Know JavaScript for the ASP.NET Developer WPF Rick Strahl's WPF Localization Guidance Paper Posted on CodePlex Connected Systems (WCF, WF, Azure Services, etc) Windows Azure, A conversation

Updated TDD Productivity Plug-in for Resharper - Eric Hexter - « Productivity wrote Updated TDD Productivity Plug-in for Resharper - Eric Hexter - « Productivity
on 07-03-2009 12:39 AM

Pingback from  Updated TDD Productivity Plug-in for Resharper - Eric Hexter - «  Productivity

Guillaume Jay wrote re: Updated TDD Productivity Plug-in for Resharper
on 07-03-2009 7:43 AM

Just a question : are you ever planning to do part II of your db4o post ?

I'm getting interested in db4o, also for the same reasons you gave: prototyping (which in my mind is potentially "using it till it becomes too slow")

VandeNikhilam USA » Updated TDD Productivity Plug-in for Resharper - Eric Hexter - wrote VandeNikhilam USA » Updated TDD Productivity Plug-in for Resharper - Eric Hexter -
on 07-03-2009 9:26 AM

Pingback from  VandeNikhilam USA » Updated TDD Productivity Plug-in for Resharper - Eric Hexter -

Sanjeev Agarwal wrote Daily tech links for .net and related technologies - July 1-4, 2009
on 07-03-2009 11:39 AM

Daily tech links for .net and related technologies - July 1-4, 2009 Web Development How to serve the

Peter Mounce wrote re: Updated TDD Productivity Plug-in for Resharper
on 07-15-2009 8:02 AM

Lovely!

On first go, though; I have a unit-test class library Foo.Unit.Tests which contains tests for several other class libraries (eg Foo.Core, Foo.Data).  I added a class inline to one of the test-class files at the end of the file, not nested into the test-class (my about-to-contain-implementation class).  I chose "Move to Foo" - and as expected, the class was moved and a new file created in the correct place.  However, the new file namespace'd the class to Foo.Unit.Tests.

I would prefer that it would change the namespace of the class, as well.

Cheers!

Copyright Los Techies 2008, 2009. All rights reserved.
Powered by Community Server (Commercial Edition), by Telligent Systems