Skip to content
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

Add GUI tests #349

Open
Godley opened this issue Oct 13, 2016 · 1 comment
Open

Add GUI tests #349

Godley opened this issue Oct 13, 2016 · 1 comment
Assignees
Milestone

Comments

@Godley
Copy link
Owner

Godley commented Oct 13, 2016

Testing coverage is currently quite low due to having 0 tests for any of the GUI files or the application file.
click here for a proposed way of testing pyqt

@Godley Godley self-assigned this Oct 13, 2016
@Godley Godley added this to the GUI milestone Oct 13, 2016
@Godley
Copy link
Owner Author

Godley commented Oct 16, 2016

Test list:

main window

  • test sidebar buttons add the right widgets and unload them on double click
  • test sidebar buttons call the appropriate signals (on_WidgetSignal, onPlaylistsReady etc)
  • test sidebar buttons call the appropriate signals with files existing in the folder and the widget loads appropriate sub widgets
  • test actions produce import dialog for import, return to setup window for new collection
  • test theme actions apply appropriate stylesheet

Scorebook widget

  • test double clicking a piece loads it in the main window and closes scorebook widget
  • test changing the sort mode changes the order of the list
  • test double clicking a piece loads it in the main window, then test piece info widget loads the right info

Playlist widgets

  • test double clicking a playlist opens playlist in main window
  • test my playlist add button loads new playlist widget
  • test creating a new playlist adds it to the list
  • test double clicking a piece in a loaded playlist, then opening the playlist browser loads the appropriate playlist + highlights the current piece

Sub windows

Setup window

  • test selecting a folder loads the main window
  • test pressing cancel on folder browser returns to setup window and doesn't open main window
  • test clicking "new collection" from main window shows previous collection in collection list
  • test clicking a collection then clicking delete removes it from the list. Also test music.db file in that folder is deleted

Add playlist window

  • test search provides suggestions
  • test removing pieces
  • test add puts the playlist into the db

Import window

  • test adding a file
  • test cancelling adding a file
  • test adding a file which isn't an xml or pdf

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

No branches or pull requests

1 participant