HTMLTestRunner下载地址:http://tungwaiyip.info/software/HTMLTestRunner.html,选择HTMLTestRunner.py下载
2.打开显示这个样子滴,这里须要注意右击另存为pycharm的Lib\site-packages目录下(否则是没有用滴)html
3.我使用的是python 3.7(看别人说须要改文件)那这里就借鉴下,借鉴地址:https://www.cnblogs.com/dreamingmoon/p/5888527.htmlpython
第94行,将import StringIO修改为import iospa
第539行,将self.outputBuffer = StringIO.StringIO()修改为self.outputBuffer = io.StringIO()code
第642行,将if not rmap.has_key(cls):修改为if not cls in rmap:htm
第766行,将uo = o.decode('latin-1')修改为uo = eblog
第775行,将ue = e.decode('latin-1')修改为ue = eip
第631行,将print >> sys.stderr, '\nTime Elapsed: %s' % (self.stopTime-self.startTime)修改为print(sys.stderr, '\nTime Elapsed: %s' % (self.stopTime-self.startTime))get
4.使用pip命令(前提是已经安装过pip)安装下pip install html-testRunner(由于我已经安装过啦因此提示下面内容) pycharm
5.安装成功后在交互界面验证下没提示就OK啦it
找到保存目录最后结果:
不要像我粗心哦,配置文件必定要配对,配错也不要慌,大不了删除重新下载配置