Skip to content

Commit

Permalink
Fix test coverage run
Browse files Browse the repository at this point in the history
The test coverage was not run and this would have failed the
coverage services after Travis CI. It is still not sure why
the Travis CI fails with tests that work locally. This may
be the reason for Travis CI failure.

Signed-off-by: Heikki Laaksonen <laaksonen.heikki.j@gmail.com>
  • Loading branch information
heilaaks committed Jun 8, 2019
1 parent e07d20f commit bb37ac1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ PIP ?= pip
PYTHON ?= python
PYTHON_VERSION ?= $(shell python -c 'import sys; print(sys.version_info[0])')
INSTALL_USER ?=
COVERAGE ?= --cov=snippy --cov-branch
COVERAGE ?= --cov snippy_tldr --cov-branch
QUIET ?= -qq
V ?=

Expand Down Expand Up @@ -51,7 +51,7 @@ docs:
make -C docs html

test:
$(PYTHON) -m pytest
$(PYTHON) -m pytest -x ${COVERAGE} --cov-report html

test-tox:
tox
Expand Down
5 changes: 5 additions & 0 deletions tests/test_snippy_tldr.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

"""test-snippy-tldr: Test snippy plugin to import tldr man pages.."""

from snippy_tldr import SnippyTldr


class TestSnippyTldr(object): # pylint: disable=too-few-public-methods
"""Test snippy-tldr."""
Expand All @@ -26,4 +28,7 @@ class TestSnippyTldr(object): # pylint: disable=too-few-public-methods
def test_001():
"""First test."""

tldr = SnippyTldr()
tldr.run()

assert 1

0 comments on commit bb37ac1

Please sign in to comment.