nose icon indicating copy to clipboard operation
nose copied to clipboard

tests using unittest subtest() causing execution stop after the first failure

Open camillake opened this issue 8 years ago • 7 comments

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.

camillake avatar Jan 08 '16 04:01 camillake

Dose nose-test support python 3.4?

camillake avatar Jan 26 '16 03:01 camillake

Bump, having similar issue where I need the test information I provide to unittest subTest to show up in the testing logs

colelawrence avatar Mar 01 '16 03:03 colelawrence

Bump. Have the same issue. When using nose, subtest doesn't work as expected.

prnanda avatar Apr 14 '16 18:04 prnanda

Folks, Nose is essentially unmaintained as of the first of the year.

jszakmeister avatar Apr 14 '16 18:04 jszakmeister

Edit:

@jszakmeister answered my own question :), maybe we should add it to the readme or description to look at nose2/alternative.

kfuchs avatar Aug 12 '16 11:08 kfuchs

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

RobertDeRose avatar Aug 14 '17 01:08 RobertDeRose

Same issue. Nose2 does this as well.

mdegans avatar Nov 20 '20 00:11 mdegans