climactic-0.3.0rc1
توضیحات
YAML-based tests for commandline utilities
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | climactic-0.3.0rc1 |
| نام | climactic |
| نسخه کتابخانه | 0.3.0rc1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Brian Jorgensen |
| ایمیل نویسنده | brian.jorgensen@gmail.com |
| آدرس صفحه اصلی | https://github.com/b33j0r/climactic |
| آدرس اینترنتی | https://pypi.org/project/climactic/ |
| مجوز | GPLv2 |
A simple testing framework for running shell commands and verifying their behavior. Tests are written as YAML files which specify the commands to run, along with assertions about the output (currently, stdout and file/directory contents).
NOTE: climactic is a Python 3 package
Features
* Pytest integration via an automatically registered plugin
* Aggregate tests recursively in a directory matching the pattern "test_*.yml" using the commandline tool `climactic`
* Compatibility with the standard `unittest` package
* Tests are run in a temporary directory to avoid data loss and path-dependent results
* Set environment variables per-test with the 'env' task
* Compare stdout, directory structure, and file contents to expected string values
* bash-like ${VAR} substitution for input commands and output validation
نحوه نصب
نصب پکیج whl climactic-0.3.0rc1:
pip install climactic-0.3.0rc1.whl
نصب پکیج tar.gz climactic-0.3.0rc1:
pip install climactic-0.3.0rc1.tar.gz