Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

Parsoft Jtest: Anyone use it?

Thread view: 
Wibble - 28 Mar 2006 03:04 GMT
Anyone using parasoft jtest?

It writes unit tests for you.  Too good to be true?
Andrew McDonagh - 28 Mar 2006 19:46 GMT
> Anyone using parasoft jtest?
>
> It writes unit tests for you.  Too good to be true?

It writes unit tests for the code you already have.
It does not write tests you need for the code you dont have.

e.g.

You have a Calculator class that does division.

class Calculator {

  public double divide(double num1, double num2){
   return num1 / num2;
  }

}

Now it will generate tests for every combination that can be induced
from that code.

It can't test that the calculator is not supposed to allow 0 divided by 0.

unless of course, you edit the code.

Its not a great tool IMHO, but better than nothing!

Its far better to write the tests yourself - before the code to be
tested.  For many many reasons, but not least, it forces your code to be
testable!

These tools are great for applying to legacy code bases (where legacy
means any code without unit tests)

Andrew
Wibble - 29 Mar 2006 02:33 GMT
>> Anyone using parasoft jtest?
>>
[quoted text clipped - 32 lines]
>
> Andrew
I always write tests for my code, but most of the developers on
my team wont.  Our management is looking for a silver bullet
because they dont want to tell people to write tests.
It makes no sense to me either.

They asked me to look at jtest since I'm always saying we need
unit tests.  I'm assuming that if they buy it, it may do some
good, but more likely just provide an excuse not to write
tests at all.

Somebody wake me up.  This dream is too stupid.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.