We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17e9489 commit a86f348Copy full SHA for a86f348
backtesting/test/__main__.py
@@ -1,6 +1,8 @@
1
+import sys
2
import unittest
3
4
suite = unittest.defaultTestLoader.discover('backtesting.test',
5
pattern='_test*.py')
6
if __name__ == '__main__':
- unittest.TextTestRunner(verbosity=2).run(suite)
7
+ result = unittest.TextTestRunner(verbosity=2).run(suite)
8
+ sys.exit(not result.wasSuccessful())
0 commit comments