From 0fbac8427bb1775f773477a53e51c293796ca086 Mon Sep 17 00:00:00 2001 From: David Date: Tue, 3 Dec 2019 18:04:19 +0000 Subject: [PATCH] Added pytest coverage --- pytest.ini | 2 ++ requirements.txt | 1 + todo.md | 1 + 3 files changed, 4 insertions(+) create mode 100644 pytest.ini diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..4dfaa5d --- /dev/null +++ b/pytest.ini @@ -0,0 +1,2 @@ +[pytest] +addopts=--cov scraper diff --git a/requirements.txt b/requirements.txt index 6bf7d4e..fe6e44e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,3 +6,4 @@ tabulate>=0.8.1 lxml>=4.2.5 PyQt5>=5.13.0 pytest>=5.3.1 +pytest-cov>=2.8.1 diff --git a/todo.md b/todo.md index 656e3d0..a37289b 100644 --- a/todo.md +++ b/todo.md @@ -4,6 +4,7 @@ - refactor so all BS4 stuff takes place in parser class(es) - make changes to GUI (see `gui.py`) - use pathlib instea of os module +- mypy for type checking - Travis CI - setup tools sorted so a proper installation process can work