Bench features in task-bench with --tasks features, from the folder the config names as bench-tasks #700

Merged
lilleman merged 14 commits from item-504 into main 2026-11-23 18:37:56 +01:00
Showing only changes of commit 20105231fc - Show all commits
+7
View File
@@ -207,6 +207,13 @@ class FeatureBenchTest(unittest.TestCase):
self.assertEqual(found.reason, reason)
self.assertFalse(self.log.exists())
def test_reads_no_places_of_the_seats_since_no_bug_is_planted_at_them(self):
argv = [part for name, value in self.given.items() if name != "--runs" for part in (name, value)]
with contextlib.redirect_stderr(io.StringIO()) as told, contextlib.redirect_stdout(io.StringIO()) as report:
code = main.main(argv, self.env, read=lambda home: Failure("the history cannot be read"))
self.assertNotIn("the history cannot be read", told.getvalue())
self.assertEqual((code, report.getvalue()[:12]), (0, "task-bench: "))
def test_a_file_beside_the_features_folders_is_no_feature(self):
(self.tasks / "README.md").write_text("# Features\n")
self.assertEqual([found.name for found in features(self.tasks)], ["halve"])