X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=jenkins_job.py;fp=jenkins_job.py;h=56dc831df85b922c7c54f0dde76cea8f22de2fc3;hb=602ae3c596df4d1306594d5da37a17628b79a1d2;hp=0000000000000000000000000000000000000000;hpb=a26958e66244372c1bc4fd47e97024ae61b1ea44;p=motion.git diff --git a/jenkins_job.py b/jenkins_job.py new file mode 100644 index 0000000..56dc831 --- /dev/null +++ b/jenkins_job.py @@ -0,0 +1,13 @@ +import unittest +import xmlrunner + +def runner(output='python_tests_xml'): + return xmlrunner.XMLTestRunner( + output=output + ) + +def find_tests(): + return unittest.TestLoader().discover('tests', 'test_motion.py') + +if __name__ == "__main__": + runner().run(find_tests())