facebook / facebook/TestSlide

Testslide runner not playing well with unittest.subtests

Open
#301 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
149
Forks
62
PR merge metrics
No merged PRs in 30d

Description

```
In [1]: from unittest import TestCase

In [2]: class Repro(TestCase):
...: def test_repro(self):
...: for x in range(0,10):
...: with self.subTest(f"{x}") as st:
...: if x == 5:
...: raise unittest.SkipTest("skipped")
...: self.assertTrue(True)

```

testslide runner marks the entire testclass skipped.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.