forked from mottosso/cmdx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_tests.py
37 lines (30 loc) · 816 Bytes
/
run_tests.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
"""Test Pure Python functionality"""
import os
import sys
import nose
import flaky.flaky_nose_plugin as flaky
if __name__ == "__main__":
print("Initialising Maya..")
from maya import standalone, cmds
standalone.initialize()
cmds.loadPlugin("matrixNodes", quiet=True)
argv = sys.argv[:]
argv.extend([
"--verbose",
"--with-doctest",
"--with-flaky",
"--with-coverage",
"--cover-html",
"--cover-package", "cmdx",
"--cover-erase",
"--cover-tests",
"tests.py",
"test_performance.py",
"cmdx.py",
])
nose.main(argv=argv, addplugins=[flaky.FlakyPlugin()])
if os.getenv("TRAVIS_JOB_ID"):
import coveralls
coveralls.wear()
else:
sys.stdout.write("Skipping coveralls")