diff options
author | saurabhb17 | 2020-02-26 16:40:14 +0530 |
---|---|---|
committer | GitHub | 2020-02-26 16:40:14 +0530 |
commit | 02c614b4e64b68758f223391cb5357b3eec78cac (patch) | |
tree | ad18839d8b4eb1f13419d07878cc4ec4c9b70032 /qa/test.py | |
parent | b77f5d9d8097c38159c6f60917995d6af13bbe1c (diff) | |
parent | 07a8c86216b6b1f694b136ec64c281d62941952e (diff) | |
download | KiCad-eSim-02c614b4e64b68758f223391cb5357b3eec78cac.tar.gz KiCad-eSim-02c614b4e64b68758f223391cb5357b3eec78cac.tar.bz2 KiCad-eSim-02c614b4e64b68758f223391cb5357b3eec78cac.zip |
Merge pull request #6 from saurabhb17/master
minor additions
Diffstat (limited to 'qa/test.py')
-rw-r--r-- | qa/test.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/qa/test.py b/qa/test.py new file mode 100644 index 0000000..3ebb937 --- /dev/null +++ b/qa/test.py @@ -0,0 +1,18 @@ +import unittest +import platform +import sys + +if platform.python_version() < '2.7': + unittest = __import__('unittest2') +else: + import unittest + +if __name__ == '__main__': + testsuite = unittest.TestLoader().discover('testcases',pattern="*.py") + results = unittest.TextTestRunner(verbosity=100).run(testsuite) + + # Return an error code if any of the testsuite tests fail + if not results.wasSuccessful(): + sys.exit(1) + + |