cornelius / kode

XML meta programming
http://www.lst.de/~cs/kode
21 stars 10 forks source link

Utilize QTest framework for tests? #57

Open martonmiklos opened 4 years ago

martonmiklos commented 4 years ago

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.

dfaure-kdab commented 4 years ago

+1 for QTest everywhere and test automation