From 61a6aa9c318c9590b4b7957979576f52412c680a Mon Sep 17 00:00:00 2001 From: Aarsh2001 Date: Mon, 28 Aug 2023 20:24:10 +0530 Subject: [PATCH] implement notebook testing pipeline using unittest --- tests/notebook_testing.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/notebook_testing.py b/tests/notebook_testing.py index 7851813f..18223ac2 100644 --- a/tests/notebook_testing.py +++ b/tests/notebook_testing.py @@ -95,3 +95,8 @@ def startTest(self, test): suite = unittest.TestLoader().loadTestsFromTestCase(NotebookTest) runner = IterativeTestRunner(verbosity=2) result = runner.run(suite) + + if result.wasSuccessful(): + exit(0) # Tests passed + else: + exit(1) # Tests failed \ No newline at end of file