[Kmymoney-devel] Review Request: Port unit tests to QTest
Fernando Vilas
fvilas at iname.com
Sun Jun 20 17:16:16 CEST 2010
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/4408/
-----------------------------------------------------------
(Updated 2010-06-20 15:16:16.304618)
Review request for kmymoney.
Changes
-------
New patch converts a header that was missed before. I uninstalled CPPUNIT, so it should be better this time.
Summary
-------
This patch removes the dependency on CPPUNIT for the unit tests. As part of that, there is no longer a kmymoneytest executable created. The tests are all individual and can be executed with "make test", or called individually.
Most of the port is s/CPPUNIT_FAIL/QFAIL/g and s/CPPUNIT_ASSERT/QVERIFY/g.
The web quotes test has an example of data driven testing, which we may use more in later unit test updates.
The patch is fairly large, so I want some others to review it before I commit.
Diffs (updated)
-----
/trunk/extragear/office/kmymoney/CMakeLists.txt 1140349
/trunk/extragear/office/kmymoney/kmymoney/CMakeLists.txt 1140349
/trunk/extragear/office/kmymoney/kmymoney/converter/CMakeLists.txt 1140349
/trunk/extragear/office/kmymoney/kmymoney/converter/convertertest.h 1140349
/trunk/extragear/office/kmymoney/kmymoney/converter/convertertest.cpp 1140349
/trunk/extragear/office/kmymoney/kmymoney/kmymoneytest.cpp 1140349
/trunk/extragear/office/kmymoney/kmymoney/main.cpp 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/CMakeLists.txt 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneyaccounttest.h 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneyaccounttest.cpp 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneyexceptiontest.h 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneyexceptiontest.cpp 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneyfiletest.h 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneyfiletest.cpp 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneyfinancialcalculatortest.h 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneyfinancialcalculatortest.cpp 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneyforecasttest.h 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneyforecasttest.cpp 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneyinstitutiontest.h 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneyinstitutiontest.cpp 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneykeyvaluecontainertest.h 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneykeyvaluecontainertest.cpp 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneymoneytest.h 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneymoneytest.cpp 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneyobjecttest.h 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneyobjecttest.cpp 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneypayeetest.h 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneypayeetest.cpp 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneypricetest.h 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneypricetest.cpp 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneyscheduletest.h 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneyscheduletest.cpp 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneysecuritytest.h 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneysecuritytest.cpp 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneysplittest.h 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneysplittest.cpp 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneytestutils.cpp PRE-CREATION
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneytransactiontest.h 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneytransactiontest.cpp 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/mymoneyutils.cpp 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/storage/CMakeLists.txt 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/storage/mymoneydatabasemgrtest.h 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/storage/mymoneydatabasemgrtest.cpp 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/storage/mymoneymaptest.h 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/storage/mymoneymaptest.cpp 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.h 1140349
/trunk/extragear/office/kmymoney/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp 1140349
/trunk/extragear/office/kmymoney/kmymoney/reports/CMakeLists.txt 1140349
/trunk/extragear/office/kmymoney/kmymoney/reports/kreportsviewtest.h 1140349
/trunk/extragear/office/kmymoney/kmymoney/reports/pivotgridtest.h 1140349
/trunk/extragear/office/kmymoney/kmymoney/reports/pivotgridtest.cpp 1140349
/trunk/extragear/office/kmymoney/kmymoney/reports/pivottabletest.h 1140349
/trunk/extragear/office/kmymoney/kmymoney/reports/pivottabletest.cpp 1140349
/trunk/extragear/office/kmymoney/kmymoney/reports/querytabletest.h 1140349
/trunk/extragear/office/kmymoney/kmymoney/reports/querytabletest.cpp 1140349
Diff: http://reviewboard.kde.org/r/4408/diff
Testing
-------
All tests were ported, and remain passing.
Thanks,
Fernando
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kmymoney-devel/attachments/20100620/6f6e7a88/attachment-0001.htm
More information about the KMyMoney-devel
mailing list