VS 2008 - test driven?

R

roger.pearse

Hello,

Can anyone tell me whether VS 2008 has test-driven development
facilities in it? If so, in which versions?

Thanks,

Roger Pearse
 
M

Marc Gravell

IIRC, 2008 Pro has the test tools included (it used to be Team System
upwards for 2005).

Or perhaps consider NUnit which would work for all.

Marc
 
R

roger.pearse

IIRC, 2008 Pro has the test tools included (it used to be Team System
upwards for 2005).

Or perhaps consider NUnit which would work for all.

I remember that it used to be in Team System, which was ridiculously
costly. I've verified that it isn't in the Express 2008 edition.

The problem with NUnit for those of us coming to it from Eclipse and
JUnit is the lack of proper IDE integration.

All the best,

Roger Pearse
 
L

Leon Mayne

Marc Gravell said:
IIRC, 2008 Pro has the test tools included (it used to be Team System
upwards for 2005).

Yes, unit testing is now incorporated into VS2008 Professional and upwards.
Just add a test project to your solution and start writing your tests (subs
tagged with <TestMethod()>) and then create code in your main project to
make the unit tests work.
 
J

Jon Skeet [C# MVP]

The problem with NUnit for those of us coming to it from Eclipse and
JUnit is the lack of proper IDE integration.

I know what you mean - but ReSharper is very good. It's quite
expensive, but a really good addition. It also adds various other
things that you may be used to from Eclipse like "Open Type" and "Open
File" (i.e. with appropriate autocomplete) - very handy :)
 
R

roger.pearse

Yes, unit testing is now incorporated into VS2008 Professional and upwards..
Just add a test project to your solution and start writing your tests (subs
tagged with <TestMethod()>) and then create code in your main project to
make the unit tests work.

That's great -- thank you.

All the best,

Roger Pearse
 
R

roger.pearse

I know what you mean - but ReSharper is very good. It's quite
expensive, but a really good addition. It also adds various other
things that you may be used to from Eclipse like "Open Type" and "Open
File" (i.e. with appropriate autocomplete) - very handy :)

Interesting, and I like the sound of that. I'm interested for VB.NET,
but I see this supports it.

But $200, tho... ouch! That's actually more than VS 2008 Pro costs on
Ebay. I think that they will have to drop their prices seriously now.

All the best,

Roger Pearse
 
J

Jon Skeet [C# MVP]

Interesting, and I like the sound of that. I'm interested for VB.NET,
but I see this supports it.

But $200, tho... ouch! That's actually more than VS 2008 Pro costs on
Ebay. I think that they will have to drop their prices seriously now.

Well, it's not a case of one or the other. There's much more to
ReSharper than just the unit test stuff. (I'd also be somewhat
concerned about the legality of any copies of VS 2008 Pro on Ebay - in
particular it's unlikely that most *companies* would feel comfortable
buying software in that way.)
 
A

Alun Harford

I remember that it used to be in Team System, which was ridiculously
costly. I've verified that it isn't in the Express 2008 edition.

The problem with NUnit for those of us coming to it from Eclipse and
JUnit is the lack of proper IDE integration.

TestDriven.NET

Alun Harford
 
R

roger.pearse

TestDriven.NET

I'm afraid that I don't consider this qualifies as 'proper IDE
integration', compared with Eclipse. I know it was a great advance in
its day, but it's laughable compared to what Java people take for
granted. There's no instrinsic reason why tools for VS shouldn't be
just as good, and Testdriven.NET isn't. And nor is TestMatrix.

All the best,

Roger Pearse
 
R

roger.pearse

Well, it's not a case of one or the other. There's much more to
ReSharper than just the unit test stuff.

For me it is purely a question of TDD, tho.
(I'd also be somewhat concerned about the legality of any copies of VS 2008
Pro on Ebay - in particular it's unlikely that most *companies* would feel
comfortable buying software in that way.)

I'm sure that you're right, although I personally wouldn't worry a
bit. But in these days when Eclipse, Java, Jboss, J2EE are all free,
I would hate to have to sell to a company the idea of *buying*
development tools anyway.

All the best,

Roger Pearse
 
M

Marc Gravell

I would hate to have to sell to a company the idea of *buying*
development tools anyway.

While I am familiar with this view, I've never fully understood it...
at the professional level, dev tools are essentially tools of the
trade, the same as tools in many other professions. I know that there
are some good free tools out there, but why do programmers/managers so
often expect everything for free, yet expect to be able to sell their
own product / service?

This is just a rhetorical ponder...

Marc
 
L

Leon Mayne

Marc Gravell said:
While I am familiar with this view, I've never fully understood it... at
the professional level, dev tools are essentially tools of the trade, the
same as tools in many other professions. I know that there are some good
free tools out there, but why do programmers/managers so often expect
everything for free, yet expect to be able to sell their own product /
service?

Agreed. Also, Visual Studio is (in my opinion) the best IDE in the world.
Nothing else comes close. There are free versions for people doing small
personal projects, and professional outfits who are set to profit from their
development efforts should have the money to pay for the correct tools for
the job.
 
J

Jon Skeet [C# MVP]

Leon Mayne said:
Agreed. Also, Visual Studio is (in my opinion) the best IDE in the world.
Nothing else comes close. There are free versions for people doing small
personal projects, and professional outfits who are set to profit from their
development efforts should have the money to pay for the correct tools for
the job.

Have you done much Java development and used Eclipse and IDEA? I don't
personally like IDEA, but Eclipse is well ahead in my view when it
comes to productivity for writing code.

Visual Studio has a lot more designers etc, but in the plain text
editor, I prefer Eclipse for various reasons. (Search for Eclipse in my
blog for examples.) ReSharper brings VS a lot closer, and VS2008 is
another improvement over VS2005 which was undoubtedly leaps and bounds
ahead of VS2003 - but it's still not quite there IMO. Nice to see we've
finally got "sort and remove unused using directives" though - only
about 6 years after Eclipse ;)
 
L

Leon Mayne

Jon Skeet said:
Have you done much Java development and used Eclipse and IDEA? I don't
personally like IDEA, but Eclipse is well ahead in my view when it
comes to productivity for writing code.

I only used Eclipse briefly when it was in its infancy. I was moved onto
JDeveloper by my employer, because that's what the team was using.
JDeveloper wasn't too bad.
Visual Studio has a lot more designers etc, but in the plain text
editor, I prefer Eclipse for various reasons. (Search for Eclipse in my
blog for examples.) ReSharper brings VS a lot closer, and VS2008 is
another improvement over VS2005 which was undoubtedly leaps and bounds
ahead of VS2003 - but it's still not quite there IMO. Nice to see we've
finally got "sort and remove unused using directives" though - only
about 6 years after Eclipse ;)

Removing unused imports is something that should have been in Visual Studio
from 1.0. As you said, Eclipse has it, and so did JDeveloper.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top