FOR ARCHIVAL PURPOSES ONLY

The information in this wiki hasn't been maintained for a good while. Some of the projects described have since been deprecated.

In particular, the "Ushahidi Platform v3.x" section contains information that is often misleading. Many details about this version of Platform have changed since.

This website is an extraction of the original Ushahidi wiki into a static form. Because of that, functions like logging in, commenting or searching will not work.

For more documentation, please refer to https://docs.ushahidi.com

Skip to end of metadata
Go to start of metadata

Developers are encouraged to use Test Driven Development approach (TDD). TDD is a revolutionary approach to development where you write a test before you write code. The developer first writes an automated test case (should initially fail), then writes the minimum amount of code to pass the test and finally refactors the code to acceptable standards. Refactoring code simply means making the code cleaner, clearer, simpler and elegant. You can read more about refactoring here: Code Refactoring

Steps to applying TDD

  1. Think about what you want to do
  2. Think about how to test it
  3. Write a small test. Think about the desired API
  4. Write just enough code to fail the test
  5. Run an watch the test fail.
  6. Write just enough code to pass the test (and all previous tests)
  7. Refactor
  8. Run the tests again
  9. Repeat until you can't find any more tests that drove new writing code
  • No labels