raidionics / Raidionics

Software for automatic segmentation and generation of standardized clinical reports of brain tumors from MRI volumes
https://raidionics.github.io/
BSD 2-Clause "Simplified" License
31 stars 4 forks source link

Feature: Add GUI unit tests with pyautogui #49

Open andreped opened 11 months ago

andreped commented 11 months ago

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.

andreped commented 11 months ago

Made a PR that adds a simple GUI launch test to the CIs: https://github.com/raidionics/Raidionics/pull/57

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

andreped commented 10 months ago

GUI launch test has been added in ec0f85c5348c6505e053c8f66997882943d3638e.

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

andreped commented 3 months ago

@dbouget AFAIK, this has already been resolved in: PR https://github.com/raidionics/Raidionics/pull/64? So it can be closed? Or whats remaining?