nose
nose copied to clipboard
tests using unittest subtest() causing execution stop after the first failure
environment: python 3.4 nose1.3.7
I have a test in the format of subtests
def test_even(self):
for i in range(0, 6):
with self.subTest(i=i):
self.assertEqual(i % 2, 0)
According to the official document, the test execution loop will be done whether any of assertion is pass or failed.
I use nose to execution tests programmed under unittest framework. The tests with self.subTest stop after first failure.
Dose nose-test support python 3.4?
Bump, having similar issue where I need the test information I provide to unittest subTest to show up in the testing logs
Bump. Have the same issue. When using nose, subtest doesn't work as expected.
Folks, Nose is essentially unmaintained as of the first of the year.
Edit:
@jszakmeister answered my own question :), maybe we should add it to the readme or description to look at nose2/alternative.
@jszakmeister I know this isn't the place for this, but I've been seeing you state we should be using nose2 in a lot of issues, but I can't seem to find any docs how to migrate from nose to nose2. Am I missing something? It doesn't seem to be as straightforward as just replacing nose with nose2 as one of my dependencies.
Same issue. Nose2 does this as well.