Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

test driven development

 
manu chaox
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know what "Praxi" is, and Google didn't turn up anything useful. Can you perhaps rephrase your question?
 
Kaydell Leavitt
Ranch Hand
Posts: 690
Eclipse IDE Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15484
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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".
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic