js-beautify/python/js-beautify-test.py
2020-07-07 18:07:51 -07:00

15 lines
370 B
Python
Executable File

#!/usr/bin/env python
import sys
import unittest
def run_tests():
suite = unittest.TestLoader().discover("jsbeautifier", pattern="test*.py")
suite.addTests(unittest.TestLoader().discover("cssbeautifier", pattern="test*.py"))
return unittest.TextTestRunner(verbosity=2).run(suite)
if __name__ == "__main__":
sys.exit(not run_tests().wasSuccessful())