-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
유니테스트 폴더 경로 수정 / config.py 파일 생성
- Loading branch information
Showing
5 changed files
with
32 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import os | ||
import sys | ||
|
||
if 'win' in sys.platform: # Windows | ||
sys.path.append('D:/Git/DEVS-Python') | ||
sys.path.append('D:/Git/DEVS-Python/projects/simparc') | ||
else: # Linux, Unix, MacOS | ||
sys.path.append('.') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,40 @@ | ||
import sys | ||
import unittest | ||
|
||
sys.path.append('D:/Git/DEVS-Python') | ||
import config | ||
|
||
from testPModelTest import testPModelTest | ||
# from testEF_P import testEF_P | ||
# from testROOT_CO_ORDINATORS import testROOT_CO_ORDINATORS | ||
# from testPModelTest import testPModelTest | ||
from testEF_P import testEF_P | ||
from testROOT_CO_ORDINATORS import testROOT_CO_ORDINATORS | ||
|
||
# TO-DO : 테스트 실행 파일을 엔진과 모델 테스트로 분리할 것[Jira-DEVS-41] | ||
if __name__ == '__main__': | ||
test_p0 = unittest.TestLoader().loadTestsFromTestCase(testPModelTest) | ||
test_p1 = unittest.TestLoader().loadTestsFromTestCase(testPModelTest) | ||
test_p2 = unittest.TestLoader().loadTestsFromTestCase(testPModelTest) | ||
test_p3 = unittest.TestLoader().loadTestsFromTestCase(testPModelTest) | ||
test_p4 = unittest.TestLoader().loadTestsFromTestCase(testPModelTest) | ||
# test_p0 = unittest.TestLoader().loadTestsFromTestCase(testPModelTest) | ||
# test_p1 = unittest.TestLoader().loadTestsFromTestCase(testPModelTest) | ||
# test_p2 = unittest.TestLoader().loadTestsFromTestCase(testPModelTest) | ||
# test_p3 = unittest.TestLoader().loadTestsFromTestCase(testPModelTest) | ||
# test_p4 = unittest.TestLoader().loadTestsFromTestCase(testPModelTest) | ||
# test_p5 = unittest.TestLoader().loadTestsFromTestCase(testPModelTest) | ||
# test_p6 = unittest.TestLoader().loadTestsFromTestCase(testPModelTest) | ||
# test_p7 = unittest.TestLoader().loadTestsFromTestCase(testPModelTest) | ||
# test_p8 = unittest.TestLoader().loadTestsFromTestCase(testPModelTest) | ||
# test_p9 = unittest.TestLoader().loadTestsFromTestCase(testPModelTest) | ||
# test_efp = unittest.TestLoader().loadTestsFromTestCase(testEF_P) | ||
# test_root_coordinators = unittest.TestLoader().loadTestsFromTestCase(testROOT_CO_ORDINATORS) | ||
test_efp = unittest.TestLoader().loadTestsFromTestCase(testEF_P) | ||
test_root_coordinators = unittest.TestLoader().loadTestsFromTestCase(testROOT_CO_ORDINATORS) | ||
|
||
allTests = unittest.TestSuite() | ||
allTests.addTest(test_p0) | ||
allTests.addTest(test_p1) | ||
allTests.addTest(test_p2) | ||
allTests.addTest(test_p3) | ||
allTests.addTest(test_p4) | ||
# allTests.addTest(test_p0) | ||
# allTests.addTest(test_p1) | ||
# allTests.addTest(test_p2) | ||
# allTests.addTest(test_p3) | ||
# allTests.addTest(test_p4) | ||
# allTests.addTest(test_p5) | ||
# allTests.addTest(test_p6) | ||
# allTests.addTest(test_p7) | ||
# allTests.addTest(test_p8) | ||
# allTests.addTest(test_p9) | ||
# allTests.addTest(test_efp) | ||
# allTests.addTest(test_root_coordinators) | ||
allTests.addTest(test_efp) | ||
allTests.addTest(test_root_coordinators) | ||
|
||
unittest.TextTestRunner(verbosity=2, failfast=True).run(allTests) | ||
|