cornelius/kode

Utilize QTest framework for tests?

Opened this issue · 1 comments

Hi folks!

@dfaure @winterheart @cornelius

I have started to do some work on getting the tests rolling again.
I noticed one minor thing in which I would like to ask for opinions:

Most of the tests are classical command line applications:
https://github.com/cornelius/kode/blob/master/kxml_compiler/tests/testaccounts.cpp
however the testparser is built by facilitating the QTest framework:
https://github.com/cornelius/kode/blob/master/kxml_compiler/tests/testparser.cpp

AFAIK we could pass parameters to the tests externally, so the command line options could be replaced.
What other advances does the command line approach has?

I would like to refactor them to a consistent approach in the case if turns to be the right way.

+1 for QTest everywhere and test automation