batavia icon indicating copy to clipboard operation
batavia copied to clipboard

Switch to Nose for testrunner

Open swenson opened this issue 9 years ago • 5 comments

This has some advantages:

  • Auto-parallelization in CircleCI
  • Switch to jUnit XML output so that CircleCI will have better test result messages
  • Easier to collect names of tests, and other automation

swenson avatar Oct 15 '16 18:10 swenson

Hrm... Personally, I'm not a big fan of Nose (or py.test for that matter). But I'd be interested to hear what others think.

freakboy3742 avatar Oct 16 '16 15:10 freakboy3742

I've had a hard time running out test suite under anything other than what we have. The logic to determine what constitutes a test by default is strange. I mostly want to be able to parallelize tests and collect the output in jUnit files, but I don't care so much what tool gets us there. Enumerating tests would also be nice. On Oct 16, 2016 8:12 AM, Russell Keith-Magee [email protected] wrote:Hrm... Personally, I'm not a big fan of Nose (or py.test for that matter). But I'd be interested to hear what others think.

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.

swenson avatar Oct 16 '16 16:10 swenson

@swenson: would nose paralellise tests also locally? Example: my laptop has two cores, four if you count hyperthreading. Would tests run on all four HT cores if I ran the command in a particular way?

candeira avatar Oct 18 '16 13:10 candeira

@candeira It does! I believe there is a flag you can use with nose to make it auto-parallelize.

swenson avatar Oct 18 '16 16:10 swenson

I'm a pytest fan. You can parallelize on it with the pytest-xdist plugin.

One thing to consider is that Nose is effectively abandoned at this point, whilst development continues on pytest.

adamchainz avatar Nov 05 '16 13:11 adamchainz