Skip to content

Commit

Permalink
custom test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
iameraj committed Feb 8, 2024
1 parent b8dfc8b commit 1c729a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/myproject/testRunner.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from django.test.runner import DiscoverRunner
from termcolor import colored
from termcolor import colored
from unittest import TestResult


class CustomTestRunner(DiscoverRunner):
def run_suite(self, suite, **kwargs):
# Get the number of tests in the suite
Expand All @@ -27,4 +28,4 @@ def run_suite(self, suite, **kwargs):
else:
print(colored("Failed", "red"))

return result
return result

0 comments on commit 1c729a1

Please sign in to comment.