Skip to content

Commit d360d7c

Browse files
committed
20201014 update 2: update test case
1 parent 3bdcd0b commit d360d7c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

test/run_test.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
from io import StringIO
3+
import unittest
4+
import os
5+
6+
7+
8+
if __name__=='__main__':
9+
case_path = os.getcwd() #c
10+
discover = unittest.defaultTestLoader.discover(case_path,pattern="test_cells*.py")
11+
output = StringIO()
12+
runner = unittest.TextTestRunner(stream=output , verbosity=2) # verbosity the valude is include of 0,1,2. 1 is default , 0 is simple , 2 is details
13+
runner.run(discover)
14+
output.seek(0)
15+
16+
while True:
17+
strBuf = output.readline()
18+
if strBuf == "":
19+
break
20+
print(strBuf)
21+
output.close()

0 commit comments

Comments
 (0)