On Fri, 28 Jul 2017,
josef...@gmail.com wrote:
> (this is a shortened email from my initial draft)
> Because nosetests is not developed anymore, every package in the
> scientific python area is switching to pytest.
even though every one is moving, and I do use pytest in new projects, I
want first of all to applaud nose developer(s) for providing community
with the super nice and stable (was used in thousands of projects
without any heavy real maintenance for a while) tool. I am still
learning my ways around pytest, which are at times "too magical", and
often look back at the clarity of the explicit nose way of doing things.
> Kevin prepared a PR
https://github.com/statsmodels/statsmodels/pull/3804
> to migrate to pytest. We would like to merge this ASAP.
> At the moment we still have some yield based tests in the recently merged
> VECM. pytest has deprecated yield based tests but currently still supports
> them. Those tests will be converted to regular tests in the near future.
some of the "yield" tests are "parametric tests", e.g. test_all in
statsmodels/nonparametric/tests/test_lowess.py
so they should be converted to pytest's way for those, e.g. with
@pytest.mark.parametrize
> Also, we currently don't use pytest specific features, so for now
> nosetests still works on the command line.
> As part of the PR we also switch from coveralls to codecov for the test
> coverage results.
+1
just to make sure -- you are aware of their wonderful browser(s)
extension to annotate PRs code diff view with coverage info, aren't you?
--
Yaroslav O. Halchenko
Center for Open Neuroscience
http://centerforopenneuroscience.org
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone:
+1 (603) 646-9834 Fax:
+1 (603) 646-1419
WWW:
http://www.linkedin.com/in/yarik