All Projects → pytest-dev → Cookiecutter Pytest Plugin

pytest-dev / Cookiecutter Pytest Plugin

Licence: mit
A Cookiecutter template for pytest plugins 💻

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Cookiecutter Pytest Plugin

Cookiecutter Cms
Python-centric Cookiecutter for Molecular Computational Chemistry Packages
Stars: ✭ 197 (+8.84%)
Mutual labels:  cookiecutter, pytest
Wemake Django Template
Bleeding edge django template focused on code quality and security.
Stars: ✭ 1,141 (+530.39%)
Mutual labels:  cookiecutter, pytest
cookiecutter-flask-react
Cookiecutter for a Flask+React project
Stars: ✭ 22 (-87.85%)
Mutual labels:  cookiecutter, pytest
Pytest Cookies
The pytest plugin for your Cookiecutter templates. 🍪
Stars: ✭ 96 (-46.96%)
Mutual labels:  cookiecutter, pytest
Python Best Practices Cookiecutter
Python best practices project cookiecutter 🍪
Stars: ✭ 286 (+58.01%)
Mutual labels:  cookiecutter, pytest
Wagtail Pipit
Pipit is a Wagtail CMS boilerplate which aims to provide an easy and modern developer workflow with a React-rendered frontend.
Stars: ✭ 109 (-39.78%)
Mutual labels:  cookiecutter, pytest
Pytest Datadir
pytest plugin for manipulating test data directories and files
Stars: ✭ 135 (-25.41%)
Mutual labels:  pytest
Pytest Tricks
😏 Tips and Tricks for the Python Testing Tool
Stars: ✭ 162 (-10.5%)
Mutual labels:  pytest
Pytest Describe
Describe-style plugin for the pytest framework
Stars: ✭ 128 (-29.28%)
Mutual labels:  pytest
Python Blueprint
🐍 Example Python project using best practices 🔩
Stars: ✭ 123 (-32.04%)
Mutual labels:  pytest
Seleniumbase
A Python framework that inspires developers to become better test automation engineers. 🧠💡
Stars: ✭ 2,520 (+1292.27%)
Mutual labels:  pytest
Pytest Flask Sqlalchemy
A pytest plugin for preserving test isolation in Flask-SQLAlchemy using database transactions.
Stars: ✭ 168 (-7.18%)
Mutual labels:  pytest
Automationtest
Pytest测试框架,UI, API, DataBase,部分功能已封装,可根据实际需求修改
Stars: ✭ 159 (-12.15%)
Mutual labels:  pytest
Ipytest
Pytest in IPython notebooks.
Stars: ✭ 139 (-23.2%)
Mutual labels:  pytest
Usaspending Api
Server application to serve U.S. federal spending data via a RESTful API
Stars: ✭ 166 (-8.29%)
Mutual labels:  pytest
Pytest Check
A pytest plugin that allows multiple failures per test.
Stars: ✭ 131 (-27.62%)
Mutual labels:  pytest
Sugardough
A web application template based on Django.
Stars: ✭ 173 (-4.42%)
Mutual labels:  cookiecutter
Python Pytest Cases
Separate test code from test cases in pytest.
Stars: ✭ 127 (-29.83%)
Mutual labels:  pytest
Data Science Stack Cookiecutter
🐳📊🤓Cookiecutter template to launch an awesome dockerized Data Science toolstack (incl. Jupyster, Superset, Postgres, Minio, AirFlow & API Star)
Stars: ✭ 153 (-15.47%)
Mutual labels:  cookiecutter
Awesome Pytest
A curated list of awesome pytest resources
Stars: ✭ 170 (-6.08%)
Mutual labels:  pytest

cookiecutter-pytest-plugin

Join Chat on Gitter.im See Build Status on Travis CI Documentation Status

Minimal Cookiecutter template for authoring pytest plugins that help you to write better programs.

This template requires Cookiecutter 1.4.0 "Shortbread" or higher

Getting Started

Install Cookiecutter and generate a new pytest plugin project:

$ pip install cookiecutter
$ cookiecutter https://github.com/pytest-dev/cookiecutter-pytest-plugin

Cookiecutter prompts you for information regarding your plugin:

full_name [Raphael Pierzina]: Andreas Pelme
email [[email protected]]: [email protected]
github_username [hackebrot]: pelme
plugin_name [foobar]: awesome
module_name [awesome]: awesome
short_description [A simple plugin to use with pytest]:
version [0.1.0]:
pytest_version [2.9.1]:
Select docs_tool:
1 - mkdocs
2 - sphinx
3 - none
Choose from 1, 2, 3 [1]: 1
Select license:
1 - MIT
2 - BSD-3
3 - GNU GPL v3.0
Choose from 1, 2, 3 [1]: 2
INFO:post_gen_project:Moving files for mkdocs.

There you go - you just created a minimal pytest plugin:

pytest-awesome/
├── LICENSE
├── README.rst
├── docs
│   └── index.md
├── mkdocs.yml
├── pytest_awesome.py
├── setup.py
├── tests
│   ├── conftest.py
│   └── test_awesome.py
└── tox.ini

Features

  • Installable PyPI package featuring a setup.py.
  • Test suite running tox and pytest that makes sure your plugin is working as expected
  • Working example code for a fixture, a cli option, as well as a pytest.ini option
  • Comprehensive README.rst file that contains useful information about your plugin
  • Continuous integration configuration for Travis CI and AppVeyor
  • Optional documentation with either Sphinx or MkDocs
  • Choose from several licenses, such as MIT, BSD-3, Apache v2.0, GNU GPL v3.0, or MPL v2.0

Requirements to Submit a Plugin

If you plan on submitting your plugin to the pytest-dev organization you need to meet the following requirements:

  • PyPI presence with a setup.py that contains a license, pytest- prefixed, version number, authors, short and long description.
  • a tox.ini for running tests using tox.
  • a README describing how to use the plugin and on which platforms it runs.
  • a LICENSE file or equivalent containing the licensing information, with matching info in setup.py.
  • an issue tracker unless you rather want to use the core pytest issue tracker.

Please see the official guidelines at Submit a Plugin.

Resources

Please consult the pytest docs for more information on hooks at pytest hook reference.

Contribute

We welcome you to contribute to this project. Please visit the documentation to get started!

Issues

If you encounter any problems, please file an issue along with a detailed description.

Code of Conduct

Everyone interacting in the Cookiecutter pytest Plugin project's codebases, issue trackers, chat rooms, and mailing lists is expected to follow the PyPA Code of Conduct.

License

Distributed under the terms of the MIT license, Cookiecutter pytest Plugin is free and open source software.

OSI certified

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].