-
Notifications
You must be signed in to change notification settings - Fork 172
/
setup.py
102 lines (77 loc) · 2.58 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
===============================
HtmlTestRunner
===============================
.. image:: https://img.shields.io/pypi/v/html-testRunner.svg
:target: https://pypi.python.org/pypi/html-testRunner
.. image:: https://img.shields.io/travis/oldani/HtmlTestRunner.svg
:target: https://travis-ci.org/oldani/HtmlTestRunner
HtmlTest runner is a unittest test runner that save test results
in Html files, for human readable presentation of results.
This Package was inspired in ``unittest-xml-reporting`` and
``HtmlTestRunner by tungwaiyip``.
Usage:
--------------
.. code-block:: python
import HtmlTestRunner
import unittest
class TestStringMethods(unittest.TestCase):
def test_upper(self):
self.assertEqual('foo'.upper(), 'FOO')
def test_error(self):
"\"" This test should be marked as error one. ""\"
raise ValueError
def test_fail(self):
"\"" This test should fail. ""\"
self.assertEqual(1, 2)
@unittest.skip("This is a skipped test.")
def test_skip(self):
"\"" This test should be skipped. ""\"
pass
if __name__ == '__main__':
unittest.main(testRunner=HtmlTestRunner.HTMLTestRunner(output='example_dir'))
As simple as import the class an initialize it, it only have one request
parameter that is output, this one is use to place the report in a sub
direcotry in ``reports`` directory.
Links:
---------
* `Github <https://github.com/oldani/HtmlTestRunner>`_
"""
from setuptools import setup
requirements = [
# Package requirements here
"Jinja2>=2.10.1"
]
test_requirements = [
# Package test requirements here
]
setup(
name='html-testRunner',
version='1.2.1',
description="A Test Runner in python, for Human Readable HTML Reports",
long_description=__doc__,
author="Ordanis Sanchez Suero",
author_email='[email protected]',
url='https://github.com/oldani/HtmlTestRunner',
packages=[
'HtmlTestRunner',
],
package_dir={'HtmlTestRunner':
'HtmlTestRunner'},
include_package_data=True,
install_requires=requirements,
license="MIT license",
zip_safe=False,
keywords='HtmlTestRunner TestRunner Html Reports',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3.5',
],
test_suite='tests',
tests_require=test_requirements
)