Skip to content

シンプルなTDDハンズオン環境にする #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

25 changes: 20 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,31 @@ 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
plugins: forked-1.3.0, cov-2.11.1, xdist-2.2.1
rootdir: /root/work/python_pytest
plugins: cov-2.11.1
collected 3 items

tests/acme/test_snake.py::TestPython::test_be_out_of_question PASSED [ 33%]
Expand All @@ -47,7 +63,6 @@ TDDBC for Python with Pytest

============================== 3 passed in 0.04s ===============================

のように正常終了すればOKです

ライセンス
==========
Expand Down
11 changes: 0 additions & 11 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
9 changes: 0 additions & 9 deletions setup.cfg

This file was deleted.

13 changes: 0 additions & 13 deletions tox.ini

This file was deleted.