qmltests: working but by calling qmltestrunner explicitly
This commit is contained in:
@@ -2,5 +2,9 @@ cmake_minimum_required(VERSION 3.0)
|
||||
|
||||
include(QmlTest)
|
||||
|
||||
add_qml_test(. QmlTestTest)
|
||||
#add_qml_test(. QmlTestTest)
|
||||
add_test (NAME qmltestrunner
|
||||
COMMAND qmltestrunner -import ${CMAKE_BINARY_DIR} -input ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import QtQuick 2.3
|
||||
import QtTest 1.0
|
||||
|
||||
TestCase {
|
||||
name: "MathTests Test"
|
||||
name: "MathTests Test2"
|
||||
|
||||
function test_math() {
|
||||
compare(2 + 2, 4, "2 + 2 = 4")
|
||||
Reference in New Issue
Block a user