Web lists-archives.com

Re: Problem in GCompris unit testing

the exercice is a theorical one, not a practical one ("For balancebox activity, how will you approach the unit test for this specific activity, what would you test and how?" for those who wonder).
This issue is probably the only difficult one the student will have to search for during gsoc so it would be better to later dig more yourself before asking for help and more rewarding.


2018-04-03 6:32 GMT+02:00 Himanshu Vishwakarma <himvish997@xxxxxxxxx>:

Currently, I am working on GSoC exercise as given by the mentors. I
facing some problem in CMAKE while compiling the qml test. My Question

How to import the activity libraries in the test directory? So that it
can use in the test.

I write CMakeLists.txt file is something like this:
when I import the files which I going to be tested in our test file,
It gives the error in the followings lines of the imported file.

    import QtQuick 2.6
    import GCompris  1.0
    import Box2D 2.0 as Box2D

when compile, it gives the error like this: Error:
~/gcompris-qt/src/activities/balancebox/balancebox.js:30,1: module
"QtQuick" version 2.6 is not installed OR module "GCompris" is not
installed OR module "Box2D" is not installed.
Whereas all the files of the GCompris are importing QtQuick 2.6 &&
GCompris 1.0 and it compiles successfully.

Currently, I am using the Qt5 version 5.6.1 and the following methods
for importing in the file like this:
    import "../../src/activities/balancebox"
    import "../../src/activities/balancebox.js" as Activity
Correct me if I am wrong.

please help me !! So that I can compile the test
Himanshu Vishwakarma