@@ -9,37 +9,38 @@ TDDBC for Python with Pytest
99動作確認環境
1010============
1111
12- - Python 2.7.6
13- - Python 3.3.1
14- - PyPy 1.9.0
15- - PyPy 2.2.0
12+ - Python 3.8.5
13+ - pytest 6.2.4
14+
15+ ※Python2は2020年1月にサポート終了(EOL)していますので、Python3をご利用ください。
1616
1717セットアップ
1818============
1919
2020.. code-block :: sh
2121
22- $ pip install -r requirements.txt
22+ $ pip3 install -r requirements.txt
2323
2424 **setup.py ** を実行し
2525
2626.. code-block :: sh
2727
28- $ python setup.py test
28+ $ python3 setup.py test
2929
3030 ...
3131
3232 # Output sample
33- ======================== test session starts =================================
34- platform linux2 -- Python 2.7.3[pypy-2.2.0-final] -- pytest-2.4.2
35- -- ~ /.virtualenvs/tddbc_python_pytest_pypy22/bin/python
36- plugins: cov, xdist
33+ ============================= test session starts ==============================
34+ platform linux -- Python 3.8.5, pytest-6.2.4, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3
35+ cachedir: .pytest_cache
36+ rootdir: /root/work/python_pytest, configfile: setup.cfg
37+ plugins: forked-1.3.0, cov-2.11.1, xdist-2.2.1
3738 collected 3 items
3839
39- tests/acme/test_acme .py:28: TestPython. test_be_out_of_question PASSED
40- tests/acme/test_acme .py:41: TestMontyPython. test_say_name[Monty Python] PASSED
41- tests/acme/test_acme .py:41: TestMontyPython. test_say_name[John Smith] PASSED
42- ======================== 3 passed in 0.10 seconds ============================
40+ tests/acme/test_snake .py:: TestPython:: test_be_out_of_question PASSED [ 33%]
41+ tests/acme/test_snake .py:: TestMontyPython:: test_say_name[Monty Python] PASSED [ 66%]
42+ tests/acme/test_snake .py:: TestMontyPython:: test_say_name[John Smith] PASSED [100%]
43+ ============================== 3 passed in 0.05s === ============================
4344
4445 のように正常終了すればOKです
4546
0 commit comments