fix: failing tests to not count as an error

This commit is contained in:
2026-03-21 07:45:09 +00:00
parent 88ad09fa6d
commit ee9ae6b127
2 changed files with 10 additions and 22 deletions
-12
View File
@@ -36,14 +36,6 @@ type testFixtureFiles struct {
outPath string
}
type TestSuiteFailedError struct {
Failed int
}
func (e TestSuiteFailedError) Error() string {
return fmt.Sprintf("%d scenario(s) failed", e.Failed)
}
// RunTests replays all scenarios under the configured test directory.
func RunTests(path string) error {
return runTests(path, testIO{
@@ -114,10 +106,6 @@ func runTests(path string, tio testIO) error {
),
)
if summary.failed > 0 {
return TestSuiteFailedError{Failed: summary.failed}
}
return nil
}