This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org
Difference between revisions of "OWASP Secure TDD Project"
From OWASP
Lauren Tabak (talk | contribs) m |
Lauren Tabak (talk | contribs) |
||
Line 13: | Line 13: | ||
==Introduction== | ==Introduction== | ||
+ | |||
Line 41: | Line 42: | ||
TDD is less about testing, and more about designing the code. Unit tests are then used to set the expectations for the end code.<br> When the end code is written, and passes tests (specifications), you have a code that was designed using tests.<br> | TDD is less about testing, and more about designing the code. Unit tests are then used to set the expectations for the end code.<br> When the end code is written, and passes tests (specifications), you have a code that was designed using tests.<br> | ||
− | |||
Like unit tests, TDD tests can be used for regression testing. You can use TDD tests to immediately determine whether a change in code has broken existing application functionality. However, unlike a unit test, a TDD test does not necessarily test one unit of code in isolation. <br> | Like unit tests, TDD tests can be used for regression testing. You can use TDD tests to immediately determine whether a change in code has broken existing application functionality. However, unlike a unit test, a TDD test does not necessarily test one unit of code in isolation. <br> | ||
− | |||
You can do unit testing without doing test driven development. However you can't do test driven development without using unit tests.<br> | You can do unit testing without doing test driven development. However you can't do test driven development without using unit tests.<br> | ||
Line 51: | Line 50: | ||
Test driven development approach is to write unit test before writing code.<br> | Test driven development approach is to write unit test before writing code.<br> | ||
− | |||
− | |||
Revision as of 18:26, 12 March 2014