[TIP] PyQt testing with nose
Michael Foord
fuzzyman at voidspace.org.uk
Wed Jun 24 03:52:22 PDT 2009
Noah Gift wrote:
> Anyone on the list have good recommendations for simplistic functional
> testing PyQt applications with nose? By simplistic, I mean, launch the
> GUI, then quit, if there weren't any exceptions, good enough for first
> round of tests.
You could check out my articles on Function Testing of GUI applications.
The examples are with Windows Forms and unittest but all the principles
should apply:
http://www.voidspace.org.uk/python/articles/testing/index.shtml
(Functional test number 1 for Resolver One is that when the application
starts a Windows with the right title appears. It's about two lines of
code. :-)
The Python Testing Tools Taxonomy lists pyGUIUnit as a library for
testing Qt. Seems pretty old though:
http://sourceforge.net/projects/pyguiunit/
Michael
>
> --
> Cheers,
>
> Noah
> ------------------------------------------------------------------------
>
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python
>
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
More information about the testing-in-python
mailing list