Monday, September 13, 2010

test-driven development

howdy,

test driven development in a quickie..
development:
1. read use case.
2. identify domain models and services
3. make test for services and domain models
4. run test, should fail.
5. now implement something. run tests again.
6. if fail, refactor. if pass, move to next use case.
7. rinse and repeat.

bug-fixing:
1. read bug description.
2. make a test to make the bug appear and have it fail.
3. fix the bug. run test to pass.
4. run other tests to check if you have broken something.
5. if nothing is broken. commit. move to next bug.
6. rinse and repeat.

continuous integration:
1. have at least #1 above. if not, do that first.
2. write test suites for all tests. group them by module.
3. have a script to trigger all test suites.
4. build, run tests, notify, package, deploy.

:)

No comments: