Giter VIP home page Giter VIP logo

Comments (5)

aroberge avatar aroberge commented on August 25, 2024

@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.

jeremygray avatar jeremygray commented on August 25, 2024

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.

aroberge avatar aroberge commented on August 25, 2024

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.

jeremygray avatar jeremygray commented on August 25, 2024

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.

aroberge avatar aroberge commented on August 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.