ASynK
ASynK copied to clipboard
Need a proper Unit Test Suite
There is currently a test/ directory in the application root, but not all work any more, and not all are mean to be executed as a part of any automated pre-release certification test. This is not a great state of affairs. We need a proper suite of tests to ensure all the fields are synched properly across all pairs of supported dbs.
But this is a LOOOOT of work... Hm.
Have been making a start on this front. There is a directory test/gold which currently has two python unit test files test_bb.py and test_state.py These two are meant to test the BBDB file parsing methods and the config/state json files respectively. They are not anywhere close to being extensive, but it's a good start.
You can run them as
$ python test_bb.py
$ python test_state.py