-
Notifications
You must be signed in to change notification settings - Fork 48
[MAINT] Reactivate GUI tests from the CI #3867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
88 commits
Select commit
Hold shift + click to select a range
8faeec3
Update UnitTesting\estUtils.py to use PySide signals and slots
krzywon f6ab313
Move unit test data into the sas.qtgui.UnitTesting
krzywon 6a74590
Update file loading in Calculators\UnitTesting to use the new file lo…
krzywon 16af3a8
assert function.called -> function.assert_called()
krzywon f12cf40
Update window sizes to match new values and use PySide SizePolicy imp…
krzywon e22cae0
Enable all failing tests
krzywon b678e7e
QtWidgets.qApp.processEvents -> QtWidgets.QApplication.processEvents
krzywon b28d16a
Update data operations panel tests to match latest functionality
krzywon 63818a6
Update density and sld calculator tests to match latest periodictable…
krzywon d23ad18
Fix all of the GSC tests
krzywon 90c1681
Reenable skipped plotting tests
krzywon ecac8be
Plotting unit tests: QtWidgets.qApp -> QtWidgets.QApplication
krzywon c63f51f
Plotting unit tests: assert <function>.called -> <function>.assert_ca…
krzywon 00b45a0
Get colormap tests beyond the fixtures point
krzywon 152d88b
Fix call to return values in linear fit test (not passing yet)
krzywon e7a569f
Use proper data set in plotter 2d tests
krzywon 020f962
Update plotter tests to match api change (codeEditor -> textEdit)
krzywon 40c6a9e
Update invariant q range slider test to match API changes
krzywon d02de6e
Update inversion q range slider tests to match actual functionality
krzywon 5972c1b
Add safety check to inversion logic to ensure dy exists before checki…
krzywon e5db6df
Match inversion q-range slider tests to match latest inversion (tabbe…
krzywon d8d5a81
Fix get_bins output to match method api
krzywon 9bfcc2f
Explicitly set the min/max q values for the plotter 2D test data set
krzywon 2e58b27
Change the test number of plot context menu actions to match the exis…
krzywon d2470b4
Fix the plotter data passed to the plotter tests
krzywon 35b4c24
Set the dummy manager class in the slicer tests to a QWidget
krzywon e3e5832
Ensure slicer parameter tests dummy manager active_plots is set when …
krzywon 257098b
Update color map tests to match latest mpl API
krzywon 1150e9b
Remove unneeded assert from the add text plotter tests
krzywon a1c8ff2
Update linear fit tests to match latest api changes
krzywon e415c1f
Fix last few issues in plotter2d tests
krzywon 1e8639f
Fix last few issues in plotter tests
krzywon 3f52078
Turn off Invariant QRangeSlider tests and revert all work to original…
krzywon 1a03957
Fix the last slicer parameter tests
krzywon ccdb71d
Remove xfail decorator from MainWindow\UnitTesting tests
krzywon 972f54a
Fix failing welcome panel test
krzywon 53e1a2d
qApp -> QApplication in MainWindow\UnitTesting
krzywon 022d075
Clean up GuiUtils imports in DataExplorerTest.py
krzywon 094b47c
Look in sas.qtgui.UnitTesting for gui test data files
krzywon 2939a37
Cleaning up DataExplorerTest.py - down to 4 failures and 1 error
krzywon aa614fe
Finishing up the data explorer tests - still 1 xfail and 1 skipped, b…
krzywon 6db736f
Fix inversion perspective currentTabDataId call to match latest funct…
krzywon a4a1292
Get all main window unit tests working
krzywon ce6232b
Get the gui manager tests running (with 1 xfail)
krzywon ea1f808
Get the gui manager tests running (with 1 xfail)
krzywon e0064ba
Get corfunc tests working
krzywon 85a28f1
Skip the failing multi constraint test because the method being teste…
krzywon a40a7c3
Fix fitting complex constraint tests
krzywon 2159b33
Disable fitting constraint widget tests because of fatal exceptions
krzywon 2d93cb5
Fix fit page tests
krzywon a09d229
Fix fitting options tests with 1 xfail
krzywon ddcd868
Fix fitting perspective tests with 2 xfail
krzywon 6eb5353
Get fitting widget tests into a passing state
krzywon 40ba551
Get invariant detail tests working
krzywon a583554
Fix size distribution tests
krzywon 04d47ad
Disable particle editor tests in pyproject.toml
krzywon ba866f9
Disable inversion tests in pyproject.toml (too many issues!)
krzywon 7dfc994
Update inversion tests (but not going any further than this!)
krzywon ce15546
Finalize invariant unit test fixes
krzywon 599f5d1
Fix file converter tests
krzywon f59e641
Fix grid panel tests
krzywon 738ca58
Fix tabbed model editor tests
krzywon 20b95d9
Xfail logger test
krzywon cb743da
Fix plugin definition tests
krzywon b18cedd
Fix gui utils tests
krzywon bc2bd93
Move add multie editro tests into quarantine folder and add folder to…
krzywon e6c46d6
Reenable the gui tests in the CI
krzywon a331ff1
Fix preference panel tests
krzywon ec5d39c
Move deactivated tests to folders called Quarantine and add those dir…
krzywon 837229d
Try running the GUI tests on the windows runner instead of linux (test)
krzywon 0f190bc
Remove linux bash commands from gui test runner
krzywon 35c3d8f
Revert back to linux runner for GUI tests
krzywon a460ef2
Run gui tests directly against the installed sasview wheels
krzywon a1fca64
Build the UI files just before the UI tests to ensure they exist befo…
krzywon 009a892
Remove qapp definition that threw an error during CI GUI tests
krzywon 623179c
Give the suggestionss outlined in https://pytest-qt.readthedocs.io/en…
krzywon f6a697d
Move the test running dependency installation into the GUI test secti…
krzywon f890af7
Set the Qt platform to offscreen for the GUI tests to fix the segfaul…
krzywon 5823c74
Quarantine GuiManagerTest.py due to the segfault when running the tests
krzywon ce4d44a
Quarantine MainWindowTest.py due to the segfault when running the tests
krzywon 9626cd0
Quarantine QRangeSliderTests.py due to the segfault when running the …
krzywon fdc5ea5
Fixes for broken unit tests
krzywon 2881a39
Fixes for broken unit tests part 2
krzywon 21dc2be
Merge branch 'main' into gui-tests-activation
krzywon 30ba7f7
Fixes for broken invariant tests
krzywon 924d531
small fixes like remove .show(), use relative path to test data file …
backmari 0e57411
Create a standard base_path importable for all gui tests to import data
krzywon 6ea7559
Fixes issues noted in review
krzywon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@krzywon just noticed this now (sorry) - setting
DISPLAYlike this here but allowing xvfb-run to pick its own display number with-ais fragile.-ais for automatically determining which display to use, starting at:99. It also should be unnecessary asxvfb-runsets DISPLAY on its own and sets it to the value of the display that it has created. It should be safe(r) to remove this when next touching the code.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll open an issue to remove it. This was something I tried after reading the commented link, but wasn't sure it was doing anything, and based on what you're suggesting, it likely isn't.