A pytest plugin for executing Jupyter Notebooks as tests
Project description
pytest-testbook
Enables writing 1) software requirements, 2) manual testing procedure, and 3) test automation code all in one single Jupyter Notebook. This notebook effectively becomes a Testbook because pytest can recognize the automated tests inside and execute the tests.
This Pytest_ plugin was generated with Cookiecutter_ along with @hackebrot's Cookiecutter-pytest-plugin template.
Features
- TODO
Requirements
- Latest version of Python (currently Python 3.5); Sorry, I haven't tested it on Python 2.7 or any other versions.
- Latest version of pytest (currently pytest 2.9)
- Jupyter
Installation
You can install "pytest-testbook" via pip_ from PyPI_::
$ pip install pytest-testbook
Usage
- TODO
Contributing
Contributions are very welcome. Tests can be run with tox_, please ensure
the coverage at least stays the same before you submit a pull request.
License
Distributed under the terms of the MIT_ license, "pytest-testbook" is free and open source software
Issues
If you encounter any problems, please file an issue_ along with a detailed description.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _@hackebrot: https://github.com/hackebrot
.. _MIT: http://opensource.org/licenses/MIT
.. _BSD-3: http://opensource.org/licenses/BSD-3-Clause
.. _GNU GPL v3.0: http://www.gnu.org/licenses/gpl-3.0.txt
.. _Apache Software License 2.0: http://www.apache.org/licenses/LICENSE-2.0
.. _cookiecutter-pytest-plugin: https://github.com/pytest-dev/cookiecutter-pytest-plugin
.. _file an issue: https://github.com/ldiary/pytest-testbook/issues
.. _pytest: https://github.com/pytest-dev/pytest
.. _tox: https://tox.readthedocs.org/en/latest/
.. _pip: https://pypi.python.org/pypi/pip/
.. _PyPI: https://pypi.python.org/pypi
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytest_testbook-1.2.5.tar.gz.
File metadata
- Download URL: pytest_testbook-1.2.5.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5418158180256a489200489169493105109d261f0d69707bea50e9098e80fc7c
|
|
| MD5 |
cdaf42babf4a665435c3849dc25db328
|
|
| BLAKE2b-256 |
49e2f6e1253f125b90ca25418cb35f1fcb032371b3575eb2b9efc262694bda22
|
File details
Details for the file pytest_testbook-1.2.5-py3-none-any.whl.
File metadata
- Download URL: pytest_testbook-1.2.5-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24a9bc11b5e1a7a210e77d8028e52ba2a0a8049b43daf01d582011810dc4df12
|
|
| MD5 |
8ba1867e248aa412c5c7619a14fe5ae0
|
|
| BLAKE2b-256 |
c9863e9818323897fe373fa4b629e876c2ad5d1b06f00d519fa72cc456dccd50
|