Skip to content

Commit

Permalink
More boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
aragilar committed Mar 1, 2017
1 parent e8d445d commit f795d80
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 2 deletions.
12 changes: 10 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
include versioneer.py
include pytest_info_collector/_version.py
include versioneer.py pytest_info_collector/_version.py
include README.md
include LICENSE.txt
recursive-include docs *
recursive-exclude docs/_build *
include doc-requirements.txt
include test-requirements.txt
recursive-include tests *.py
include pylintrc
include tox.ini
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[![Documentation Status](https://readthedocs.org/projects/pytest_info_collector/badge/?version=latest)](http://pytest_info_collector.readthedocs.org/en/latest/?badge=latest)
[![Build Status](https://travis-ci.org/aragilar/pytest_info_collector.svg?branch=master)](https://travis-ci.org/aragilar/pytest_info_collector)
[![Coverage Status](https://codecov.io/github/aragilar/pytest_info_collector/coverage.svg?branch=master)](https://codecov.io/github/aragilar/pytest_info_collector?branch=master)
[![Version](https://img.shields.io/pypi/v/pytest_info_collector.svg)](https://pypi.python.org/pypi/pytest_info_collector/)
[![License](https://img.shields.io/pypi/l/pytest_info_collector.svg)](https://pypi.python.org/pypi/pytest_info_collector/)
[![Wheel](https://img.shields.io/pypi/wheel/pytest_info_collector.svg)](https://pypi.python.org/pypi/pytest_info_collector/)
[![Format](https://img.shields.io/pypi/format/pytest_info_collector.svg)](https://pypi.python.org/pypi/pytest_info_collector/)
[![Supported versions](https://img.shields.io/pypi/pyversions/pytest_info_collector.svg)](https://pypi.python.org/pypi/pytest_info_collector/)
[![Supported implemntations](https://img.shields.io/pypi/implementation/pytest_info_collector.svg)](https://pypi.python.org/pypi/pytest_info_collector/)
[![PyPI](https://img.shields.io/pypi/status/pytest_info_collector.svg)](https://pypi.python.org/pypi/pytest_info_collector/)


pytest_info_collector is

Bug reports and suggestions should be filed at
[https://github.com/aragilar/pytest_info_collector/issues](https://github.com/aragilar/pytest_info_collector/issues).
4 changes: 4 additions & 0 deletions pytest_info_collector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def pytest_terminal_summary(self, terminalreporter, exitstatus):
"""
Hook for printing test info at the end of the run
"""
# pytest: disable=unused-argument
terminalreporter.section("Test Information")
for test, info in self._info.items():
for datum in info:
Expand All @@ -32,6 +33,9 @@ def test_info(self, request):
Fixture to collect test information
"""
def add_info(info):
"""
Adds information about test
"""
self._info[get_test_name(request)].append(info)
return add_info

Expand Down
6 changes: 6 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
[wheel]
universal=1

[versioneer]
VCS = git
style = pep440
versionfile_source = pytest_info_collector/_version.py
versionfile_build = pytest_info_collector/_version.py
tag_prefix = v

[check-manifest]
ignore =
.travis.yml

0 comments on commit f795d80

Please sign in to comment.