Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

Commit b762aa3

Browse files
committed
0.2.15
1 parent c724e42 commit b762aa3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/sflkit/runners/run.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ class Runner(abc.ABC):
3636
def __init__(self, re_filter: str = r".*", timeout=DEFAULT_TIMEOUT):
3737
self.timeout = timeout
3838
self.re_filter = re.compile(re_filter)
39+
self.passing = set()
40+
self.failing = set()
41+
self.undefined = set()
42+
self.tests = {
43+
TestResult.PASSING: self.passing,
44+
TestResult.FAILING: self.failing,
45+
TestResult.UNDEFINED: self.undefined,
46+
}
3947

4048
def get_tests(
4149
self,
@@ -77,6 +85,7 @@ def run_tests(
7785
(output / test_result.get_dir()).mkdir(parents=True, exist_ok=True)
7886
for run_id, test in enumerate(tests):
7987
test_result = self.run_test(directory, test, environ=environ)
88+
self.tests[test_result].add(test)
8089
if os.path.exists(directory / "EVENTS_PATH"):
8190
shutil.move(
8291
directory / "EVENTS_PATH",
@@ -91,6 +100,9 @@ def run(
91100
base: Optional[os.PathLike] = None,
92101
environ: Environment = None,
93102
):
103+
self.passing.clear()
104+
self.failing.clear()
105+
self.undefined.clear()
94106
self.run_tests(
95107
directory,
96108
output,

0 commit comments

Comments
 (0)