daniel@daydream:~/reboot-packaging/obj-x86_64-linux-gnu$ qmltestrunner -v2 -input ../tests/unit/ -import app
file:///home/daniel/reboot-packaging/tests/unit/tst_hellocomponent.qml:13:5: HelloComponent is not a type HelloComponent {
^
********* Start testing of qmltestrunner *********
Config: Using QtTest library 5.3.0, Qt 5.3.0
INFO : qmltestrunner::tst_hellocomponent::compile() entering
QWARN : qmltestrunner::tst_hellocomponent::compile()
/home/daniel/reboot-packaging/tests/unit/tst_hellocomponent.qml produced 1 error(s):
/home/daniel/reboot-packaging/tests/unit/tst_hellocomponent.qml:13,5: HelloComponent is not a type
Working directory: /home/daniel/reboot-packaging/obj-x86_64-linux-gnu
View: QQuickView, import paths:
'/home/daniel/.local/share'
'/usr/share'
'/usr/local/share'
'/usr/share/gnome'
'/home/daniel/reboot-packaging/obj-x86_64-linux-gnu/app'
'/usr/lib/x86_64-linux-gnu/qt5/bin'
'/usr/lib/x86_64-linux-gnu/qt5/qml'
Plugin paths:
'.'
FAIL! : qmltestrunner::tst_hellocomponent::compile() HelloComponent is not a type
Loc: [/home/daniel/reboot-packaging/tests/unit/tst_hellocomponent.qml(13)]
Totals: 0 passed, 1 failed, 0 skipped
********* Finished testing of qmltestrunner *********
daniel@daydream:~/reboot-packaging/obj-x86_64-linux-gnu$ make test
Running tests...
/usr/bin/ctest --force-new-ctest-process
Test project /home/daniel/reboot-packaging/obj-x86_64-linux-gnu
Start 1: basic
1/1 Test #1: basic ............................***Failed 0.23 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 0.24 sec
The following tests FAILED:
1 - basic (Failed)
Errors while running CTest
Makefile:116: recipe for target 'test' failed
make: *** [test] Error 8
daniel@daydream:~/reboot-packaging/obj-x86_64-linux-gnu$
Unfortunately we don't get much information from a "make test" run, even if I add "-v2" to the qmltestrunner bit in CMakeLists.txt, there is little indication of what went wrong. This makes debugging tests harder than it should be.
This is working now.
daniel@ daydream: ~/reboot- packaging/ obj-x86_ 64-linux- gnu$ qmltestrunner -v2 -input ../tests/unit/ -import app /home/daniel/ reboot- packaging/ tests/unit/ tst_hellocompon ent.qml: 13:5: HelloComponent is not a type
HelloComponen t { :tst_hellocompo nent::compile( ) entering :tst_hellocompo nent::compile( ) daniel/ reboot- packaging/ tests/unit/ tst_hellocompon ent.qml produced 1 error(s): daniel/ reboot- packaging/ tests/unit/ tst_hellocompon ent.qml: 13,5: HelloComponent is not a type reboot- packaging/ obj-x86_ 64-linux- gnu daniel/ .local/ share' local/share' share/gnome' daniel/ reboot- packaging/ obj-x86_ 64-linux- gnu/app' lib/x86_ 64-linux- gnu/qt5/ bin' lib/x86_ 64-linux- gnu/qt5/ qml'
file://
^
********* Start testing of qmltestrunner *********
Config: Using QtTest library 5.3.0, Qt 5.3.0
INFO : qmltestrunner:
QWARN : qmltestrunner:
/home/
/home/
Working directory: /home/daniel/
View: QQuickView, import paths:
'/home/
'/usr/share'
'/usr/
'/usr/
'/home/
'/usr/
'/usr/
Plugin paths:
'.'
FAIL! : qmltestrunner: :tst_hellocompo nent::compile( ) HelloComponent is not a type daniel/ reboot- packaging/ tests/unit/ tst_hellocompon ent.qml( 13)] daydream: ~/reboot- packaging/ obj-x86_ 64-linux- gnu$ make test new-ctest- process reboot- packaging/ obj-x86_ 64-linux- gnu ....... ....... ....... ***Failed 0.23 sec
Loc: [/home/
Totals: 0 passed, 1 failed, 0 skipped
********* Finished testing of qmltestrunner *********
daniel@
Running tests...
/usr/bin/ctest --force-
Test project /home/daniel/
Start 1: basic
1/1 Test #1: basic .......
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 0.24 sec
The following tests FAILED: daydream: ~/reboot- packaging/ obj-x86_ 64-linux- gnu$
1 - basic (Failed)
Errors while running CTest
Makefile:116: recipe for target 'test' failed
make: *** [test] Error 8
daniel@
Unfortunately we don't get much information from a "make test" run, even if I add "-v2" to the qmltestrunner bit in CMakeLists.txt, there is little indication of what went wrong. This makes debugging tests harder than it should be.