Re: Switching to py.test

Chris Barker <[email protected]>
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <CALGmxEKWzsw1xb02UoGKvq_XBvd2BeaoOM6rXzC60PsL2nhw9w@mail.gmail.com>
nice! I'm a big py.test fan....

While py.test will happily run unittest tests, one of the nicest things
about it is that you can write far less verbose tests, and not use that
TestCAse.assertFoo nonsense!

So as we move forward, maybe we can write cleaner, more compact tests.

Be sure to check out pytest.mark.parameterize() at some point :-)

-CHB




On Mon, Jul 4, 2016 at 4:08 PM, Robin Dunn <[email protected]> wrote:

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



-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

[email protected]

-- 
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.