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

test driven development

manu chaox
Ranch Hand

Joined: Apr 10, 2006
Posts: 110
Could you tell me if "test driven development" is used often in praxi?
Where is used and where not?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Don't know what "Praxi" is, and Google didn't turn up anything useful. Can you perhaps rephrase your question?


[Jess in Action][AskingGoodQuestions]
Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 689

Test-Driven-Development means that you specify your program by first designing and coding your test cases. I believe that it is used in practice. I see job ads that ask for this. I think that JUnit is a tool to help you with test-driven-development.

-- Kaydell
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14280
    
  21

With "in praxi", Manu probably means "in practice".

As far as I know, test driven development means that you have people who take the requirements for the application and convert them into test cases to check if the application adheres to the requirements alongside the developers who write the code for the application. You can do this with automatic testing, for example with JUnit, or just by testing manually.

You test the application in steps as it is being developed and you manage the development by keeping track of how many of the tests it passes. Ideally, you're finished if you have a complete set of test cases and the application passes them all.

Try searching Google for "test driven development".


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by Jesper Young:
[/qb]As far as I know, test driven development means that you have people who take the requirements for the application and convert them into test cases to check if the application adheres to the requirements alongside the developers who write the code for the application. You can do this with automatic testing, for example with JUnit, or just by testing manually.
[/QB]


Close. TDD means that the developer himselfs writes a testcase just before he writes to code to make it pass.

- write test
- write production code to make it pass
- refactor
- repeat until finished

It is a very close cycle - typically it shouldn't take longer than a few minutes from test to test.

And yes, it is used in practice - in fact I'd say that it is quite popular.

http://www.testdriven.com/modules/xoopsfaq/ gives a good introduction.

Moving to our Testing forum...


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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: test driven development