Page MenuHomeSoftware Heritage

Switch test runner to pytest instead of nose
ClosedPublic

Authored by olasd on Oct 23 2018, 12:31 PM.

Details

Summary

Also port the coverage flags to be compatible with pytest-cov.

Kinda sorta close T1261.

Test Plan

looks like make test is happy

Diff Detail

Repository
rDENV Development environment
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

sounds good.

I'm always wondering what's the difference between using the module and what looks like the executable that is:

  • python3 -m pytest
  • pytest (~> in the tox.ini started to get defined here and there e.g in swh-scheduler, that's what's used)

ok, but we loose the --with-doctest, which should be mentioned in the commit msg (I'm wondering if https://github.com/thisch/pytest-sphinx would be useful also)

This revision is now accepted and ready to land.Oct 23 2018, 2:54 PM

ok, but we loose the --with-doctest, which should be mentioned in the commit msg (I'm wondering if https://github.com/thisch/pytest-sphinx would be useful also)

ACK; I've added the proper setting to the modules that need them.

This revision was automatically updated to reflect the committed changes.