forked from fgoudreault/auxiclean
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtests.py
More file actions
33 lines (28 loc) · 1.35 KB
/
Copy pathtests.py
File metadata and controls
33 lines (28 loc) · 1.35 KB
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
import sys
import nose
import os
modules = ["auxiclean.unittests.test_coding_standards",
"auxiclean.unittests.test_selector.TestSelector",
"auxiclean.unittests.test_selector.TestSortingSelector",
"auxiclean.unittests.test_selector.TestMultiplePosition",
"auxiclean.unittests.test_selector.TestSecondChoiceIsBetter",
"auxiclean.unittests.test_selector.TestSecondChoiceIsBetterButNoMoreDispo",
"auxiclean.unittests.test_selector.TestNoDispo",
"auxiclean.unittests.test_selector.TestNoSpaceInClass",
"auxiclean.unittests.test_selector.TestUserInput",
"auxiclean.unittests.test_selector.TestSwitch",
"auxiclean.unittests.test_selector.TestCourseGiven",
"auxiclean.unittests.test_selector.TestScholarity",
"auxiclean.unittests.test_selector.TestNobel",
"auxiclean.unittests.test_selector.TestProgram",
"auxiclean.unittests.test_selector.TestGPA",
"auxiclean.unittests.test_excel_manager.TestExcelManager"]
def run(tests):
os.environ["NOSE_WITH_COVERAGE"] = "1"
os.environ["NOSE_COVER_PACKAGE"] = "auxiclean"
os.environ["NOSE_COVER_HTML"] = "1"
os.environ["NOSE_COVER_ERASE"] = "1"
os.environ["NOSE_COVER_TESTS"] = "1"
nose.main(defaultTest=tests)
if __name__ == "__main__":
run(modules)