Skip to content

Commit c07e40c

Browse files
committed
Attempt at fixing unit test failures on TravisCI
Fixed toxi.ini so py.test is being called correctly when code coverage analysis is being done on this single-file project. Also: - Run code coverage on TravisCI for Python 3.4, 3.5, and 3.6 - Don't bother installing some modules which we aren't currently using for testing related to mocks - Added detail to README regarding what the two different color libraries provide
1 parent e0829f0 commit c07e40c

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ Dependencies
3333
unicode strings rendered to a terminal.
3434

3535
If you wish to use the optional support for color, then at least one of the following two modules must be installed:
36-
* [colorama](https://github.com/tartley/colorama)
37-
* [colored](https://github.com/dslackw/colored)
36+
* [colorama](https://github.com/tartley/colorama) - simple cross-platform colored terminal text with about 16 colors
37+
* [colored](https://github.com/dslackw/colored) - library for color in terminal with 256 colors, macOS and Linux only
3838

3939
If both ``colorama`` and ``colored`` are installed, then ``colored`` will take precedence.
4040

tox.ini

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ deps =
1414
codecov
1515
pytest
1616
pytest-cov
17-
pytest-mock
1817
commands =
19-
py.test {posargs} --cov
18+
py.test {posargs} --cov=tableformatter
2019
codecov
2120

2221
[testenv:py35]
2322
deps =
24-
mock
23+
codecov
2524
pytest
26-
pytest-mock
27-
commands = py.test -v
25+
pytest-cov
26+
commands =
27+
py.test {posargs} --cov=tableformatter
28+
codecov
2829

2930
[testenv:py35-win]
3031
deps =
31-
mock
3232
pytest
3333
commands = py.test -v
3434

@@ -37,9 +37,8 @@ deps =
3737
codecov
3838
pytest
3939
pytest-cov
40-
pytest-mock
4140
commands =
42-
py.test {posargs} --cov
41+
py.test {posargs} --cov=tableformatter
4342
codecov
4443

4544
[testenv:py36-win]
@@ -48,12 +47,11 @@ deps =
4847
pytest
4948
pytest-cov
5049
commands =
51-
py.test {posargs} --cov
50+
py.test {posargs} --cov=tableformatter
5251
codecov
5352

5453
[testenv:py37]
5554
deps =
5655
pytest
57-
pytest-mock
5856
commands = py.test -v
5957

0 commit comments

Comments
 (0)