Skip to content

Headless Gui Tests#152

Merged
codeCollision4 merged 16 commits into
developfrom
headless_gui
Jul 21, 2022
Merged

Headless Gui Tests#152
codeCollision4 merged 16 commits into
developfrom
headless_gui

Conversation

@codeCollision4
Copy link
Copy Markdown
Contributor

Changed the Github actions to account for XVFB usage. It seems easiest to use a combo of the GitHub action to download XVFB to our linux test and then use the pytest-xvfb plugin to have our tests auto use the installed XVFB. The tests I created are simple and only the top-level widgets were tested as they are the only windows and all subclass widgets will be tested. The tests will fail if an exemption occurs when generating the widgets. Should give us a baseline starting point. I couldn't directly test using XVFB so this may not work out of the box but base structure is there.

@codeCollision4
Copy link
Copy Markdown
Contributor Author

Tests now work. Test history shows failure upon removing xvfb in 619ae77 then further failure until pytest-xvfb has been added 1142032. Then the final test successfully skips the zoom test that keeps failing.

@zacsimile
Copy link
Copy Markdown
Collaborator

If you're renaming Autofocus_Popup and Remote_Popup...

  1. Go all the way, and change to AutofocusPopup and RemotePopup.
  2. You have to change all of the calls to these (see aslm_controller.py)

@codeCollision4
Copy link
Copy Markdown
Contributor Author

Returned to normal

@codeCollision4 codeCollision4 merged commit 1aeae9c into develop Jul 21, 2022
@codeCollision4 codeCollision4 deleted the headless_gui branch July 21, 2022 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants