All Projects → smarie → Pytest Patterns

smarie / Pytest Patterns

Licence: bsd-3-clause
A couple of examples showing how pytest and its plugins can be combined to solve real-world needs.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Pytest Patterns

Python Pytest Cases
Separate test code from test cases in pytest.
Stars: ✭ 127 (+429.17%)
Mutual labels:  data, test, pytest, file
python-pytest-harvest
Store data created during your `pytest` tests execution, and retrieve it at the end of the session, e.g. for applicative benchmarking purposes.
Stars: ✭ 44 (+83.33%)
Mutual labels:  benchmark, test, pytest
Datash
Send and Receive files directly from your browser with end-to-end encryption
Stars: ✭ 178 (+641.67%)
Mutual labels:  share, data, file
playwright-test
Run unit tests with several runners or benchmark inside real browsers with playwright.
Stars: ✭ 81 (+237.5%)
Mutual labels:  benchmark, test
filein-frontend
The best way to share files
Stars: ✭ 16 (-33.33%)
Mutual labels:  share, file
SuperGrate
💾 Get moving with Super Grate; a free & open source Windows Profile Migration & Backup Utility. Super Grate is a GUI (Graphical User Interface) that assists Microsoft's USMT (User State Migration Utility) in performing remote migrations over a network connection.
Stars: ✭ 91 (+279.17%)
Mutual labels:  share, state
emacs-python-pytest
run pytest inside emacs
Stars: ✭ 105 (+337.5%)
Mutual labels:  test, pytest
agile
🌌 Global State and Logic Library for JavaScript/Typescript applications
Stars: ✭ 90 (+275%)
Mutual labels:  modular, state
revl
Helps to benchmark code for Autodesk Maya.
Stars: ✭ 14 (-41.67%)
Mutual labels:  benchmark, test
Cob
Continuous Benchmark for Go Project
Stars: ✭ 326 (+1258.33%)
Mutual labels:  benchmark, test
geo-pattern
Create beautiful generative geometric background images from a string ✨ TypeScript port of jasonlong/geo_pattern. Supports both Node.js and Browser.
Stars: ✭ 33 (+37.5%)
Mutual labels:  design, pattern
Faker
Faker is a pure Elixir library for generating fake data.
Stars: ✭ 673 (+2704.17%)
Mutual labels:  data, test
Desktop
An Open-Source file sharing software for Linux, macOS and Windows allowing you to send and receive files over available connections, and pause and resume transfer process even when an error is given
Stars: ✭ 139 (+479.17%)
Mutual labels:  share, file
html-comment-regex
Regular expression for matching HTML comments
Stars: ✭ 15 (-37.5%)
Mutual labels:  test, pattern
Zaobao
每日时报,以前端技术体系为主要分享课题。根据:文章、工具、新闻、视频几大板块作为主要分类。
Stars: ✭ 1,961 (+8070.83%)
Mutual labels:  share, design
Betterer
betterer makes it easier to make incremental improvements to your codebase
Stars: ✭ 248 (+933.33%)
Mutual labels:  incremental, test
Pytest Benchmark
py.test fixture for benchmarking code
Stars: ✭ 730 (+2941.67%)
Mutual labels:  benchmark, pytest
Data Populator
A plugin for Sketch and Adobe XD to populate your design mockups with meaningful data. Goodbye Lorem Ipsum. Hello JSON.
Stars: ✭ 1,665 (+6837.5%)
Mutual labels:  data, design
Geodev Hackerlabs
A place to learn how to build geo apps with the ArcGIS Platform.
Stars: ✭ 151 (+529.17%)
Mutual labels:  data, design
generator-nitro
Your frontend? Fuel it with Nitro! Develop your frontend with a proven but flexible Node.js app, even in a large team.
Stars: ✭ 65 (+170.83%)
Mutual labels:  modular, pattern

pytest-patterns

Build Status Documentation

A couple of examples showing how to use core pytest mechanisms and existing plugins (no additional hooks or hacks) to solve real-world problems. In other words:

"pytest for humans ;)"

This is the readme for developers. The documentation for users is available here: https://smarie.github.io/pytest-patterns/

Want to contribute ?

Contributions are welcome ! Simply fork this project on github, commit your contributions, and create pull requests.

Here is a non-exhaustive list of interesting open topics: https://github.com/smarie/pytest-patterns/issues

Running the tests

This project uses pytest.

pytest -v pytest_patterns/tests/

You may need to install requirements for setup beforehand, using

pip install -r ci_tools/requirements-test.txt

Generating the documentation page

This project uses mkdocs to generate its documentation page. Therefore building a local copy of the doc page may be done using:

mkdocs build -f docs/mkdocs.yml

You may need to install requirements for doc beforehand, using

pip install -r ci_tools/requirements-doc.txt

Generating the test reports

The following commands generate the html test report and the associated badge.

pytest --junitxml=junit.xml -v pytest_patterns/tests/
ant -f ci_tools/generate-junit-html.xml
python ci_tools/generate-junit-badge.py

Merging pull requests with edits - memo

Ax explained in github ('get commandline instructions'):

git checkout -b <git_name>-<feature_branch> master
git pull https://github.com/<git_name>/pytest-patterns.git <feature_branch> --no-commit --ff-only

if the second step does not work, do a normal auto-merge (do not use rebase!):

git pull https://github.com/<git_name>/pytest-patterns.git <feature_branch> --no-commit

Finally review the changes, possibly perform some modifications, and commit.

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].