Skip to content

Commit c8e6d8b

Browse files
CJ-Wrightchiahaoliu
authored andcommitted
add run_tests
1 parent 40d4dc2 commit c8e6d8b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

run_tests.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env python
2+
import sys
3+
import pytest
4+
import os
5+
6+
if __name__ == '__main__':
7+
# show output results from every test function
8+
args = ['-v']
9+
# show the message output for skipped and expected failure tests
10+
if len(sys.argv) > 1:
11+
args.extend(sys.argv[1:])
12+
print('pytest arguments: {}'.format(args))
13+
# # compute coverage stats for xpdAcq
14+
# call pytest and exit with the return code from pytest so that
15+
# travis will fail correctly if tests fail
16+
exit_res = pytest.main(args)
17+
sys.exit(exit_res)

0 commit comments

Comments
 (0)