-
Notifications
You must be signed in to change notification settings - Fork 23
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
Support for Qt Test #23
base: master
Are you sure you want to change the base?
Conversation
Hey @joroy, many thanks for the PR! I have a couple of questions/issues:
It is really important to me, as a maintainer, to have a reliable CI tool so I can merge contributions from others without having to resort to manually test things, that's why I must insist we find some solution for the test suite to run completely on Travis. As for the rest of the code I don't have time right now to review it, but I would rather we figure the answer to the questions above first. 😁 Thanks again! |
Hi @nicoddemus, for now I just refactored to add a ENABLE_QT_TEST flag in the SConscruct file and the test_pytest_cpp module. At least that way the travis build should not fail. To anwser your questions:
I know this pull request is not "master mergeable" material but I wanted to inform you that it exists. Regards, |
You can install PyQt and Qt on Travis via apt-get quite easily. |
Most of the time we need the latest version of Qt (now at 5.7) and we have to use an installer that cannot be run silently. Or it can be with a weird Qt Installer Framework javascript script. Maybe using an old version of Qt provided by the qt-sdk and qt5-* package is enough to run the plugin tests that I wrote but I never tried it. |
…o explain how to install it
Regarding coverage, we could push it back to 93% if installing the latest version of Qt on travis was easy as |
You're probably looking for the |
You got that right. 😉 I would be really surprised if it is not possible to have QTest completely covered on Travis. Sorry for not participating much, I'm at work right now. |
You can now run unattended install of Qt using python utility 'aqtinstall' which is another Qt CLI instlaler, I hope you become happy with it. It is still in an alpha status, and there is no wild use case, I always welcome your feedback as usual. |
Add support for Qt Test
Add plugin tests (manual)
Travis integration cannot be implemented because QT lack support for unattended install.
To manually test the plugin, install QT somewhere and update the QT5DIR variable in tests/SConstruct file. Build of the QT5 tests file is possible because the SCons qt5 tool as been installed in the tests directory.
To build and run the tests:
scons -C tests
tox