qt5base-lts/util/wasm/wasmtestrunner
David Skoland fd4f218c1e Expose the qtloader object globally
When testing, we need to query the state of the Qt application,
so change the scope of qtloader from inside the init function
to global scope.

Additionally, adjust the test script accordingly to query and use this
state to make good decisions on how to terminate.

Change-Id: I6264ba20843716eb87340b160680617b718f6bd9
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
2022-06-03 05:30:46 +02:00
..
Pipfile Add WASM testrunner 2022-03-31 16:50:25 +02:00
qt-wasmtestrunner.py Expose the qtloader object globally 2022-06-03 05:30:46 +02:00
README.md Add WASM testrunner 2022-03-31 16:50:25 +02:00

qtwasmtestrunner

This is a utility that launches a small webserver and
either a browser or a webdriver (only chrome/chromedriver at the time of writing)
This allows running wasm tests and printing the output to stdout like a normal test.

chromedriver must be installed: https://chromedriver.chromium.org/
to use it with chromedriver (default operation), and it must be in PATH
unless --chromedriver_path is passed with full path to chromedriver

Run the script with --help for more info.