raidionics / Raidionics

Software for automatic segmentation and generation of standardized clinical reports of brain tumors from MRI volumes

Home Page:https://raidionics.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature: Add GUI unit tests with pyautogui

andreped opened this issue · comments

Is your feature request related to a problem? Please describe.
It would be extremely useful to add GUI tests to verify that the software is working as intended.

Describe the solution you'd like
A way to solve this problem is to use pyautogui to enable autoclicks, and make GUI-tests with a robot that essentially performs the workflow pipeline that a human operator might do. This can at least be done to test whether any errors occur (by checking the log) when performing tests.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
A good resource on how to test Qt applications on headless machines (which is the case for GitHub Actions) can be seen here.

Made a PR that adds a simple GUI launch test to the CIs: #57

However, further GUI tests should also be performed with pyautogui or similar.

GUI launch test has been added in ec0f85c.

However, there is missing a GUI-autoclick test which would be helpful to know of all relevant UI elements are working as intended.

@dbouget AFAIK, this has already been resolved in: PR #64? So it can be closed? Or whats remaining?