• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Programmer Testing

 
Francis Siu
Ranch Hand
Posts: 867
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unit testing is talked about in this book.
 
Francis Siu
Ranch Hand
Posts: 867
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why unit testing recommends and prefers to be used in the book and in Java program?
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Francis Siu
Ranch Hand
Posts: 867
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Um........
What are the advantages using unit testing that compares with other's testing method in Java program?
 
J. B. Rainsberger
author
Ranch Hand
Posts: 87
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Do you know other testing tool like JUnit ??
 
Francis Siu
Ranch Hand
Posts: 867
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8927
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
 
J. B. Rainsberger
author
Ranch Hand
Posts: 87
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic