Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tddbc/python_pytest
skeleton for Pythonista
https://github.com/tddbc/python_pytest
Last synced: about 2 months ago
JSON representation
skeleton for Pythonista
- Host: GitHub
- URL: https://github.com/tddbc/python_pytest
- Owner: tddbc
- License: other
- Created: 2013-11-23T20:31:17.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2024-07-10T00:39:49.000Z (6 months ago)
- Last Synced: 2024-08-08T00:44:15.188Z (5 months ago)
- Language: Python
- Size: 22.5 KB
- Stars: 12
- Watchers: 20
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
- project-awesome - tddbc/python_pytest - skeleton for Pythonista (Python)
README
############################
TDDBC for Python with Pytest
############################これは、TDDBCのPythonista向け Pytest_ プロジェクトです
.. _Pytest: http://pytest.org/latest-ja/
動作確認環境
============- Python 3.8.5
- pytest 6.2.4※Python2は2020年1月にサポート終了(EOL)していますので、Python3をご利用ください。
セットアップ
============以下のように実行して、環境を構築してください。
.. code-block:: sh
$ git clone https://github.com/yattom/python_pytest.git
$ cd python_pytest
$ pip3 install -r requirements.txtテストを実行するには **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 -- /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
collected 5 items
tests/acme/test_snake.py::test_python_hisses PASSED [ 20%]
tests/acme/test_snake.py::TestMontyPython::test_say_name_guido PASSED [ 40%]
tests/acme/test_snake.py::TestMontyPython::test_say_name_kent PASSED [ 60%]
tests/acme/test_snake.py::TestMontyPython::test_say_name[Terry-Hello Terry] PASSED [ 80%]
tests/acme/test_snake.py::TestMontyPython::test_say_name[John-Hello John] PASSED [100%]
============================== 5 passed in 0.05s ===============================のように正常終了すればOKです
ライセンス
==========MIT ライセンスです (詳しくはプロジェクト直下の LICENSE をご覧ください)