Hi,
how can i load a json file in a QtTest TestCase and use it as a input paramter for one
of my functions to test?
import QtQuick 2.0
import QtTest 1.2
TestCase {
name: "Function Tests"
function test_functions_calculateSomething() {
compare("-", Functions.calc(theJsonInput))
}
}
I do not want to create a string from the JSON input - because the json input data can be quite long and is not really maintainable this way.