Comments (5)
@jeremygray I certainly agree that automated tests would be easier. This is why I had started on them (as you found out) but have not kept them up as you found out (and was using an unusual shortcut to start Anaconda's Python version). I'm labelling this as an "enhancement" to keep it visible. I want to clean up some use of global variables and complete the configuration savings work (after which, I'll be able to smplify the with_app decorator substantially). Then, I will look into implementing a better way to run unittests.
from easygui_qt.
Cool. I like pytest (some familiarity, not expert level). A plus is that it works well with travis-ci.org (free for open-source projects). I have not used unittest, nose, or others (?), but my impression is that pytest is more powerful. I don't know how they compare or to what extent the others are supported by continuous integration servers.
from easygui_qt.
I have done very little automated tests seriously (just a hobbyist - rarely used github before!) but have tried unittest, nose, doctest (did lots of experimental work with doctest https://code.google.com/p/crunchy/source/browse/#svn%2Ftrunk%2Fcrunchy%2Fsrc%2Ftests for example) and pytest once or twice.
The choice of framework is somewhat secondary - from what I remember, I'd be perfectly happy to use pytest. What I need to do is learn about PyQt4 QtTest instead of using pywinauto. A quick search suggests that http://johnnado.com/pyqt-qtest-example/ would be a good starting place.
And, since I'm doing this project first for fun and learning (having it be useful for others is a nice bonus), I'd prefer to experiment on my own first to figure out how to do tests [and then, have others like you possibly tell me that I do it wrong and show me a better way ! :-) ]
from easygui_qt.
I am also just a hobbyist. I've never used pytest to test a GUI, and am quite interested to learn how to do that. I look forward to seeing what you come up with!
from easygui_qt.
I have asked on the PyQt mailing list and on stackoverflow and no one has been able to help me. Since it looks like it just will not happen, I am going to close this issue and update the docs to indicate that unit tests are unfortunately not performed.
from easygui_qt.
Related Issues (20)
- Add optional argument handling to _launch_widget.py HOT 1
- Roadmap: widget to implement (and other added functionality) HOT 6
- hidden window problem HOT 5
- persistent unresponsive window (python 2.7.8) HOT 5
- cannot find suitable PyQt installation HOT 2
- PyQt 5 or PySide support HOT 13
- A simple question with matplotlib plot window HOT 5
- Bug with multichoice selector
- get_date returns string instead of datetime.date HOT 4
- ModuleNotFoundError HOT 5
- Press "Cancel" on get_yes_or_no return False, not None.
- get_many_strings() return orderDict,which is not good for use
- Need buttonbox window
- easygui_qt.demos "Error importing PyQt5" HOT 3
- error message in get_file_names HOT 6
- Save settings in local file
- issue with get_file_names(), get_save_file_name() HOT 2
- Problems remaining with unicode handling for Python 2.7 HOT 2
- python 2.7 subprocess issues (affects launcher demo) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easygui_qt.