This took a little longer than I thought it would but I have finished an
initial proof of concept for unit testing surrounding a rather trivial
fix for #265. The code is up in github
(
https://github.com/tflink/autoqa-devel/tree/pytest).
There are certainly some parts of it that are sub-optimal but overall, I
think that its enough for a proof of concept. Unless people are thrilled
with the py.test implementation that I currently have, I'm planning to
do another proof of concept using nose/unittest.
Instructions for running the tests are in README.test.
In the interest of not sending out a huge email, I wrote up some
documentation on why I structured things the way I did and the goals,
possible tools etc. that could be used to test AutoQA. That document is
also in the git repo
(
https://github.com/tflink/autoqa-devel/blob/pytest/doc/design/selfTesting...).
I tend to write in LaTeX and since I didn't see any other conventions I
just wrote in what I'm most used to. It wouldn't be hard to convert it
to something else (rst etc.) if that is what people prefer.
Feel free to modify the document or suggest changes. Just because I
wrote it up doesn't make it final in any sense. Also, I'm sure that I
forgot to explain something - questions are good :)
Tim