一、HTMLTestRunner

1、下载地址 

http://tungwaiyip.info/software/HTMLTestRunner.html

2、HTMLTestRunner.py 重新配置参数

#第94行

import StringIO 修改为: import io


#第539行

self.outputBuffer = StringIO.StringIO() 修改为: self.outputBuffer = io.StringIO()


#第631行

print >>sys.stderr, '\nTime Elapsed: %s' % (self.stopTime-self.startTime)

修改为:

print (sys.stderr, '\nTime Elapsed: %s' % (self.stopTime-self.startTime))


#第642行

if not rmap.has_key(cls): 修改为: if not cls in rmap:


#第766行

uo = o.decode('latin-1') 修改为: uo = o

#第772行

ue = e.decode('latin-1') 修改为: ue = e

3、拷贝

把 HTMLTestRunner.py 放到 python 安装目录 lib 目录下

二、BSTestRunner 美化插件

1、下载

https://github.com/easonhan007/HTMLTestRunner

2、拷贝

 把 BSTestRunner.py 放到 python 安装目录 lib 目录下