Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

UI Testing

TODO

Unit Testing

We 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 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

  • No labels