Network Testing: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
(Give some basic structure.)
(Add Sequence diagram)
Line 13: Line 13:
you have the necessary software installed, namely
you have the necessary software installed, namely
* docker
* docker
[[File:Sequence Diagram.png|thumb|Sequence Diagram]]


== How to convert a test to use the new system ==
== How to convert a test to use the new system ==


Change its <kbd>qmake</kbd> config to pull in <kbd>testserver.pri</kbd>
Change its <kbd>qmake</kbd> config to pull in <kbd>testserver.pri</kbd>

Revision as of 08:29, 15 October 2018

We can now test networking code using local containers to run the test servers one needs. This shall make it possible for all contributors to test changes to network code. For the moment, all existing network test code runs against a test server that's not easy to set up. The container-based solution shall launch itself transparently on make check, provided the relevant infrastructure is available.

Over to you Ryan ;-)

How to run tests

For tests already converted to the new system, you should just need to run make check, provided you have the necessary software installed, namely

  • docker
Sequence Diagram


How to convert a test to use the new system

Change its qmake config to pull in testserver.pri