├── .gitattributes
├── .idea
└── vcs.xml
├── HTMLTestRunner_Chart.py
├── README.md
├── demo.html
├── demo.json
├── img
├── 收款码1.png
├── 显示截图1.png
├── 走势图1.png
├── 饼图1.png
└── 首页1.png
├── license
└── test_selenium.py
/.gitattributes:
--------------------------------------------------------------------------------
1 | *.js linguist-language=Python
2 | *.css linguist-language=Python
3 | *.html linguist-language=Python
4 | *.vue linguist-language=Python
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/HTMLTestRunner_Chart.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 | """
3 | A TestRunner for use with the Python unit testing framework. It
4 | generates a HTML report to show the result at a glance.
5 |
6 | The simplest way to use this is to invoke its main method. E.g.
7 |
8 | import unittest
9 | import HTMLTestRunner
10 |
11 | ... define your tests ...
12 |
13 | if __name__ == '__main__':
14 | HTMLTestRunner.main()
15 |
16 |
17 | For more customization options, instantiates a HTMLTestRunner object.
18 | HTMLTestRunner is a counterpart to unittest's TextTestRunner. E.g.
19 |
20 | # output to a file
21 | fp = file('my_report.html', 'wb')
22 | runner = HTMLTestRunner.HTMLTestRunner(
23 | stream=fp,
24 | title='My unit test',
25 | description='This demonstrates the report output by HTMLTestRunner.'
26 | )
27 |
28 | # Use an external stylesheet.
29 | # See the Template_mixin class for more customizable options
30 | runner.STYLESHEET_TMPL = ''
31 |
32 | # run the test
33 | runner.run(my_test_suite)
34 |
35 |
36 | ------------------------------------------------------------------------
37 | Copyright (c) 2004-2007, Wai Yip Tung
38 | All rights reserved.
39 |
40 | Redistribution and use in source and binary forms, with or without
41 | modification, are permitted provided that the following conditions are
42 | met:
43 |
44 | * Redistributions of source code must retain the above copyright notice,
45 | this list of conditions and the following disclaimer.
46 | * Redistributions in binary form must reproduce the above copyright
47 | notice, this list of conditions and the following disclaimer in the
48 | documentation and/or other materials provided with the distribution.
49 | * Neither the name Wai Yip Tung nor the names of its contributors may be
50 | used to endorse or promote products derived from this software without
51 | specific prior written permission.
52 |
53 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
54 | IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
55 | TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
56 | PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
57 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
58 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
59 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
60 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
61 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
62 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
63 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
64 | """
65 |
66 | # URL: http://tungwaiyip.info/software/HTMLTestRunner.html
67 | import os
68 |
69 | __author__ = "Wai Yip Tung"
70 | __version__ = "0.9.1"
71 |
72 | """
73 | Change History
74 | Version 0.9.1
75 | * 用Echarts添加执行情况统计图 (灰蓝)
76 |
77 | Version 0.9.0
78 | * 改成Python 3.x (灰蓝)
79 |
80 | Version 0.8.3
81 | * 使用 Bootstrap稍加美化 (灰蓝)
82 | * 改为中文 (灰蓝)
83 |
84 | Version 0.8.2
85 | * Show output inline instead of popup window (Viorel Lupu).
86 |
87 | Version in 0.8.1
88 | * Validated XHTML (Wolfgang Borgert).
89 | * Added description of test classes and test cases.
90 |
91 | Version in 0.8.0
92 | * Define Template_mixin class for customization.
93 | * Workaround a IE 6 bug that it does not treat
210 |
211 |
212 |
213 |
214 | %(stylesheet)s
215 |
216 |
217 |