From 0cf51ef46a6f6a9267a2ab2e7245d6fbe2743f37 Mon Sep 17 00:00:00 2001 From: fukatani Date: Thu, 26 Sep 2019 00:46:39 +0900 Subject: [PATCH 1/2] #260: Measure coverage. --- .travis.yml | 2 +- setup.cfg | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ebf816a8..835ddf5b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ script: - yapf --diff --recursive onlinejudge setup.py tests | tee yapf.patch && test ! -s yapf.patch - mypy onlinejudge setup.py tests - make -C docs html - - pytest tests/*.py -v + - pytest tests/*.py -v --cov-report term-missing --cov=onlinejudge tests/ deploy: provider: pypi user: kimiyuki diff --git a/setup.cfg b/setup.cfg index cbec15d1..9a81ca16 100644 --- a/setup.cfg +++ b/setup.cfg @@ -23,6 +23,7 @@ dev = pylint >= 2.3.1 yapf >= 0.28.0 pytest >= 5.1.2 + pytest-cov >= 2.7.1 docs = sphinx >= 1.8 sphinx-autodoc-typehints >= 1.6 From 617825d0ba6e351921c39126c70ba2db37bc8490 Mon Sep 17 00:00:00 2001 From: fukatani Date: Thu, 26 Sep 2019 23:40:53 +0900 Subject: [PATCH 2/2] Update .travis.yml Co-Authored-By: Kimiyuki Onaka --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 835ddf5b..8b2bf566 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ script: - yapf --diff --recursive onlinejudge setup.py tests | tee yapf.patch && test ! -s yapf.patch - mypy onlinejudge setup.py tests - make -C docs html - - pytest tests/*.py -v --cov-report term-missing --cov=onlinejudge tests/ + - pytest tests/*.py -v --cov-report term-missing --cov=onlinejudge deploy: provider: pypi user: kimiyuki