wood burning stoves*
The moose likes Testing and the fly likes Programmer Testing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Programmer Testing" Watch "Programmer Testing" New topic
Author

Programmer Testing

Francis Siu
Ranch Hand

Joined: Jan 04, 2003
Posts: 867
Dear all~~
There are many testing methods in software engineering, which method or strategy covers in the book and prefer to use in Java program?
thanks


Francis Siu
SCJP, MCDBA
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Unit testing is talked about in this book.


Groovy
Francis Siu
Ranch Hand

Joined: Jan 04, 2003
Posts: 867
Why unit testing recommends and prefers to be used in the book and in Java program?
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by siu chung man:
Why unit testing recommends and prefers to be used in the book and in Java program?


I'm not sure I understand your question.

Unit Testing is an important, but far from sufficient, part of testing in a software development project, wether done in Java or not. I don't understand J.B. to mean that you should *only* be unit testing your applications, it's just that he decided to write a book about JUnit; other authors (or perhaps even himself) have written about the other aspects of testing, and will continue to do so...


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Francis Siu
Ranch Hand

Joined: Jan 04, 2003
Posts: 867
Um........
What are the advantages using unit testing that compares with other's testing method in Java program?
J. B. Rainsberger
author
Ranch Hand

Joined: Aug 05, 2004
Posts: 87
As the subtitle implies, JUnit Recipes is about programmer testing--tests that programmers write to give them confidence that the code does what they think the code does.

Effective programmer testing is like the brakes on a car: they allow to you go more quickly. Whenever you make a bad change to the system, a test fails and you know immediately.

Now JUnit Recipes does talk a little about integration tests and end-to-end tests, but its focus is isolated object testing: testing each object in isolation from the rest of them. The theory is--and it seems to work well for me--that if all objects work and collaborate well with one another's contracts, then the system will just work. And it does, at least the vast majority of the time.


Author of <a href="http://www.amazon.com/exec/obidos/ASIN/1932394230/ref=jranch-20" target="_blank" rel="nofollow">JUnit Recipes: Practical Methods for Programmer Testing</a>
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Hi all,

Do you know other testing tool like JUnit ??


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
Francis Siu
Ranch Hand

Joined: Jan 04, 2003
Posts: 867
thanks for every people answering my question
welcome J. B. Rainsberger

hi somkiat puisungnoen
You may require to open a new topic
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

J. B. Rainsberger


Do you think that anything is missing in Junit? :roll: Would you like to see something more in Junit?
Thanks
[ August 13, 2004: Message edited by: Pradeep Bhat ]
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Pradeep Bhat:
Do you think that anything is missing in Junit? :roll: Would you like to see something more in Junit?

One could take a look at the features of NUnit (a .NET "port" of JUnit) and notice a lot of useful little things that JUnit is missing. None of them is a real showstopper, however.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Lasse

I read these blogs

http://beust.com/weblog/archives/000121.html
http://www.theserverside.com/blogs/showblog.tss?id=Unitized
J. B. Rainsberger
author
Ranch Hand

Joined: Aug 05, 2004
Posts: 87
I am happy with JUnit's feature set. That said, as Lasse points out, NUnit has some neat features unique to languages that offer attributes, like those in the .NET world. When Tiger becomes the norm, we will have to write JUnit 4.0 and learn to take advantage of the new, flexible features. I don't know how that will change the way I write tests, but I know it will have some effect.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Programmer Testing