Skip to content

Commit

Permalink
Merge pull request #9 from HHest/patch-1
Browse files Browse the repository at this point in the history
Sort the report by class name.
  • Loading branch information
ionelmc committed Feb 3, 2016
2 parents 9bb4384 + 25ebead commit 1cda401
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 53 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Expand Up @@ -5,10 +5,6 @@ env:
LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
matrix:
- TOXENV=check
- TOXENV=2.6-1.2,coveralls
- TOXENV=2.6-1.2-nocover
- TOXENV=2.6-1.3,coveralls
- TOXENV=2.6-1.3-nocover
- TOXENV=2.7-1.2,coveralls
- TOXENV=2.7-1.2-nocover
- TOXENV=2.7-1.3,coveralls
Expand Down
3 changes: 2 additions & 1 deletion src/nose_htmloutput/__init__.py
Expand Up @@ -115,11 +115,12 @@ def report(self, stream):
The file includes a report of test errors and failures.
"""
from collections import OrderedDict
self.stats['total'] = sum(self.stats.values())
for group in self.report_data.values():
group.stats['total'] = sum(group.stats.values())
self.report_file.write(self.jinja.get_template('report.html').render(
report=self.report_data,
report=OrderedDict(sorted(self.report_data.items())),
stats=self.stats,
))
self.report_file.close()
Expand Down
48 changes: 0 additions & 48 deletions tox.ini
Expand Up @@ -2,10 +2,6 @@
envlist =
clean,
check,
2.6-1.2,
2.6-1.2-nocover,
2.6-1.3,
2.6-1.3-nocover,
2.7-1.2,
2.7-1.2-nocover,
2.7-1.3,
Expand Down Expand Up @@ -104,50 +100,6 @@ commands = coverage erase
usedevelop = true
deps = coverage

[testenv:2.6-1.2]
basepython = python2.6
setenv =
{[testenv]setenv}
WITH_COVERAGE=yes
usedevelop = true
commands =
{posargs:py.test --cov src -vv}
deps =
{[testenv]deps}
coverage
pytest-cov
nose==1.2.1

[testenv:2.6-1.2-nocover]
basepython = python2.6
deps =
{[testenv]deps}
coverage
pytest-cov
nose==1.2.1

[testenv:2.6-1.3]
basepython = python2.6
setenv =
{[testenv]setenv}
WITH_COVERAGE=yes
usedevelop = true
commands =
{posargs:py.test --cov src -vv}
deps =
{[testenv]deps}
coverage
pytest-cov
nose==1.3.4

[testenv:2.6-1.3-nocover]
basepython = python2.6
deps =
{[testenv]deps}
coverage
pytest-cov
nose==1.3.4

[testenv:2.7-1.2]
basepython = python2.7
setenv =
Expand Down

0 comments on commit 1cda401

Please sign in to comment.