Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

UI Testing

TODO

Unit Testing

We also have a modest number of python/django unit tests.
We do not have any unit tests for the javascript code.
Our approach here has partly been what I have heard called "stupidity driven development"
which essentially says that you can run from here when you find a bug, write a test that finds it,
then fix the bug, the confirm that it is fixed by running the test.
Another take on this is that if you are thrashing around in the debugger,
just start writing test code to do the same thing.
In any case, let's not be dogmatic about any of this.
Often writing a test is super easy and very much helps to prevent regressions.

...

Running the Unit Tests

...

From the command line run

https://sfgovdt.jira.com/svn/MAD/trunk/web/run_tests.cmd

which goes through the settings.py
and calls into

https://sfgovdt.jira.com/svn/MAD/trunk/web/test_suites.py