ASynK icon indicating copy to clipboard operation
ASynK copied to clipboard

Need a proper Unit Test Suite

Open skarra opened this issue 12 years ago • 1 comments

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.

skarra avatar May 31 '12 05:05 skarra

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

skarra avatar Aug 25 '13 15:08 skarra