New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Qml Testcase element #147
base: master
Are you sure you want to change the base?
Qml Testcase element #147
Conversation
fix engine stop
fix runner
Please enter the commit message for your changes. Lines starting
Sorry for the delay, will take a look at this now. |
Hm. Perhaps we need a proper way to declare elements in qml first (with parsing them at the build-time). |
This pull request is a little to big and covers different topics, not only the TestCase element. It would be a lot easier to review if this was split to independant changes. |
@ChALkeR as for the commits, i know its a big one, but im not sure i have time to squash them again in the near future, but here is a description: 82bac2d: adds some file to gitignore (related to the screenshot generator) aa70e8f: 83ac1be: replace the existing render code with the refactored render code. 208172c: adds the 71b7088: adds the qml testcases, and an example testsuite, 07a1bf7: adds support for a |
This has stalled long enough ! Unless someone else objects, I'll take care of splitting that PR in the next days. EDIT: Looks like this is so old that the merge process is fucking up. I cannot for the life of me find what happened to some of the files that weren't created, but edited by this PR... this isn't going to be a breeze. |
Related: #389. |
I don't think we should make render tests more complex. |
That's done in cb3283c. |
Added a qml TestCase element that works in both qmlweb and qt. It defines a test function, handles startup delay and timeout, has basic test functions (
expect.toBe
andfail
for now) and acompareRender
function.When a test containing a
TestCase
element as the child of the root is run in jasmine:qmlweb-dev now has an utility
qtqmltest
which can load a qml file and run the testcases defined in it. ThecompareRender
function creates a reference screenshot instead of comparing it.To test it:
from the qmlweb directory:
then run:
node dev/render.js