huilansame / htmltestrunner_py3 Goto Github PK
View Code? Open in Web Editor NEW针对PY3做了修改,增加对subTest的支持,用Echarts加了执行统计表
Home Page: http://blog.csdn.net/huilan_same/article/details/77944829
针对PY3做了修改,增加对subTest的支持,用Echarts加了执行统计表
Home Page: http://blog.csdn.net/huilan_same/article/details/77944829
举个例子
def test_add(self):
for i in range(5):
with self.subTest(num=i):
print(i)
self.assertEqual(i,3)
每条都会输出01234,如何加以区分
name = t.id().split('.')[-1]
if self.verbosity > 1:
doc = t._testMethodDoc or ''
else:
doc = ""
应该改成
name = t.id().split('.')[-1]
doc = t.shortDescription() or ""
不然用例注释无法显示出来
麻烦楼主试下大数据量写入时的情况
CSND不给评论两次,找到了py.3x中文乱码的解决办法,分享在这里吧…
在HTMLTestRunner修改 # self.stream.write(output.encode('utf-8')) 为 self.stream.write(output);然后在openfile的时候加入编码 with open('HTMLReport.html', 'w', encoding='utf-8') as f:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.