java - Should test cases written before or after creating the project? -
when junit test cases have written logically? before or after creating application? big applications how should written? based on code created or based on requirement specification.
ideally unit test cases should written first , code. many people follow test driven development(tdd). again choice , part of best practice prefer tdd.
tdd (test driven development) computer programming method consists of small iterations. in method begin writing test cases covering new functionality, write production code necessary make test pass, , after refactor code make more maintainable. writing tests before writing code guaranties immediate feedback after changes made. tdd (test-driven development) technique designing software testing it.
in test driven development (tdd) automated unit tests written before code written. running these tests give fast confirmation of whether code behaves should
.
Comments
Post a Comment