mirror of
https://github.com/beautifier/js-beautify.git
synced 2025-02-25 07:40:49 +00:00
12 lines
271 B
Python
Executable File
12 lines
271 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import sys
|
|
import unittest
|
|
|
|
def run_tests():
|
|
suite = unittest.TestLoader().discover('.', pattern = "test*.py")
|
|
return unittest.TextTestRunner(verbosity=2).run(suite)
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(not run_tests().wasSuccessful())
|