From 1162716a2585b8ed5901a511445eb5d177c464f3 Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Wed, 8 Jul 2026 16:20:44 +0200 Subject: [PATCH] tests: exit with error code if failure when running all tests --- tests/__main__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/__main__.py b/tests/__main__.py index f80d426..be06780 100644 --- a/tests/__main__.py +++ b/tests/__main__.py @@ -1,3 +1,4 @@ +import sys from typing import Type from midas.cli.ansi import Ansi @@ -37,6 +38,7 @@ def main(): print(Ansi.FG(Ansi.BRIGHT_GREEN) + "All tests passed!" + Ansi.RESET) else: print(Ansi.FG(Ansi.BRIGHT_RED) + "Some tests failed!" + Ansi.RESET) + sys.exit(1) if __name__ == "__main__":