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

Testing "framework" for WangscapeGui #176

Open
hryniuk opened this issue Aug 30, 2017 · 0 comments
Open

Testing "framework" for WangscapeGui #176

hryniuk opened this issue Aug 30, 2017 · 0 comments

Comments

@hryniuk
Copy link
Member

hryniuk commented Aug 30, 2017

Currenlty, there are no tests for this part of code. They will be very helpful during development and support. But before any of them will be written, a few things have to be done:

  • as tests will simulate e.g. button clicks, we must have stable interface; without it, we'll spend too much time on adjusting tests to code
  • design fixes, e.g:
    • for now a lot of things are done inside MainWindow - injecting dependencies would make this class much more testable and cleaner
    • (connected to previous one) OptionsManager reads data from a file and parses loaded options, which makes it (and therefore possible GUI tests) dependent on filesystem (a bit different issue: what if user would like to load options from an url 😉? I hope we won't have in Wangscape a HTTP client)

Qt documentation on GUI testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant