Switching to py.test
Robin Dunn <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I've just pushed a PR that switches Phoenix to using pytest and pytest-xdist for running the unittests from build.py, see https://github.com/wxWidgets/Phoenix/pull/110. The main reason behind this is to be able to run each test in a new process (except on Windows :-( ) and allows me to dump my hacky hack I did a couple years ago for doing something like that with the plain ol' unittest module. Another benefit of pytest is that it supports unittest style fixtures using TestCase and the various self.assertFoo methods, so most of the existing test modules don't need any changes. Anyway, I've pushed it as a PR in case anybody cares to give it a review and perhaps provide some improvements. (This is my first experience with pytest so I may have missed some non-obvious stuff that others may already know about.) I'm going to put it on the back-burner and go back to the wx.ribbon code for a while. -- Robin Dunn Software Craftsman http://wxPython.org -- You received this message because you are subscribed to the Google Groups "wxPython-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.