From cd811ad959c3c7405fa97f4f30a8928002f1e98f Mon Sep 17 00:00:00 2001 From: yattom Date: Tue, 11 May 2021 10:42:43 +0900 Subject: [PATCH 1/2] drop support for tox and Travis CI --- .travis.yml | 14 -------------- README.rst | 2 +- requirements.txt | 11 ----------- setup.cfg | 9 --------- tox.ini | 13 ------------- 5 files changed, 1 insertion(+), 48 deletions(-) delete mode 100644 .travis.yml delete mode 100644 setup.cfg delete mode 100644 tox.ini diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 936f566..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: python -python: - - 3.6 - - 3.7 - - 3.8 - - 3.9 - - pypy3 - -install: - - pip install tox tox-travis - - pip install coverage coveralls - -script: - - tox -r diff --git a/README.rst b/README.rst index 110816f..80d24be 100644 --- a/README.rst +++ b/README.rst @@ -38,7 +38,7 @@ TDDBC for Python with Pytest platform linux -- Python 3.8.5, pytest-6.2.4, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /root/work/python_pytest, configfile: setup.cfg - plugins: forked-1.3.0, cov-2.11.1, xdist-2.2.1 + plugins: cov-2.11.1 collected 3 items tests/acme/test_snake.py::TestPython::test_be_out_of_question PASSED [ 33%] diff --git a/requirements.txt b/requirements.txt index 8f8cbf6..d79fbe7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,14 +1,3 @@ -e . -appdirs==1.4.4 -cov-core==1.15.0 -coverage==5.5 -distlib==0.3.1 -execnet==1.8.0 -filelock==3.0.12 -iniconfig==1.1.1 -py==1.10.0 pytest-cov==2.11.1 -pytest-xdist==2.2.1 pytest==6.2.4 -tox==3.23.1 -virtualenv==20.4.6 diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 13091f6..0000000 --- a/setup.cfg +++ /dev/null @@ -1,9 +0,0 @@ -[metadata] -license_file = LICENSE - -[wheel] -universal = 1 - -[tool:pytest] -addopts = -rsxX -v tests acme -norecursedirs = .git diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 117cff9..0000000 --- a/tox.ini +++ /dev/null @@ -1,13 +0,0 @@ -[tox] -skipsdist = True -envlist = - py36, - py37, - py38, - py39 - -[testenv] -deps= - -r{toxinidir}/requirements.txt -commands= - pytest From 272861913376dbc06cf1171a1f1280800783f4db Mon Sep 17 00:00:00 2001 From: yattom Date: Tue, 11 May 2021 11:10:31 +0900 Subject: [PATCH 2/2] update README --- README.rst | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 80d24be..ffe7f8b 100644 --- a/README.rst +++ b/README.rst @@ -30,14 +30,30 @@ TDDBC for Python with Pytest .. code-block:: sh $ pytest - ... + # Output sample + ============================= test session starts ============================== + platform linux -- Python 3.8.5, pytest-6.2.4, py-1.10.0, pluggy-0.13.1 + rootdir: /root/work/python_pytest + plugins: cov-2.11.1 + collected 3 items + tests/acme/test_snake.py ... [100%] + ============================== 3 passed in 0.03s =============================== + +のように正常終了すればOKです + +実行したテストを1つずつ表示するには **-v** オプションを使います。 + +.. code-block:: sh + + $ pytest -v + ... # Output sample ============================= test session starts ============================== - platform linux -- Python 3.8.5, pytest-6.2.4, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3 + platform linux -- Python 3.8.5, pytest-6.2.4, py-1.10.0, pluggy-0.13.1 -- /root/work/python_pytest/.venv/bin/python3 cachedir: .pytest_cache - rootdir: /root/work/python_pytest, configfile: setup.cfg + rootdir: /root/work/python_pytest plugins: cov-2.11.1 collected 3 items @@ -47,7 +63,6 @@ TDDBC for Python with Pytest ============================== 3 passed in 0.04s =============================== -のように正常終了すればOKです ライセンス ==========