pytest-describe
kubetest
pytest-describe | kubetest | |
---|---|---|
1 | 2 | |
202 | 203 | |
0.5% | 0.0% | |
5.0 | 0.0 | |
3 months ago | over 1 year ago | |
Python | Python | |
MIT License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pytest-describe
-
My Python testing style guide – Stargirl (Thea) Flowers
I've found pytest to encourage tests with really long method names, examples from the post:
* test_refresh_failure
* test_refresh_with_timeout
These get even longer like test_refresh_with_timeout_when_username_is_not_found for example.
pytest-describe allows for a much nicer testing syntax. There's a great comparison here: https://github.com/pytest-dev/pytest-describe#why-bother
TL;DR, this is nicer:
def describe_my_function():
def with_default_arguments():
kubetest
-
Running Tests in a Kubernetes cluster
I was leaning towards python test framework in https://github.com/vapor-ware/kubetest. however, I've since noticed that there have been no contributions to the project for several years.
-
orchestrating contaiers for testing?
- https://github.com/praekeltfoundation/seaworthy but you have to recreate a manifest with code. Not ideal for mildly complex stuff. 3+years was last commit :(( - https://github.com/testcontainers/testcontainers-python which is weirdly specific to certain container images. Again, not working off a manifest (I think), 1 months since last commit. :( - https://github.com/vapor-ware/kubetest which uses kubernetes(k8s) manifests and integrates with pyTest. Last commit 10 month ago.
What are some alternatives?
pytest-clarity - A plugin to improve the output of pytest with colourful unified diffs
testcontainers-python - Testcontainers is a Python library that providing a friendly API to run Docker container. It is designed to create runtime environment to use during your automatic tests.
pytest-insta - A practical snapshot testing plugin for pytest.
seaworthy - Test harness for Docker container images 🌊 🚢
pudb - Full-screen console debugger for Python
seaworthy - A CLI to verify Kubernetes resource health
tavern - A command-line tool and Python library and Pytest plugin for automated testing of RESTful APIs, with a simple, concise and flexible YAML-based syntax
VCR.py - Automatically mock your HTTP interactions to simplify and speed up testing
pytest-django - A Django plugin for pytest.
pytest-sugar - a plugin for py.test that changes the default look and feel of py.test (e.g. progressbar, show tests that fail instantly)