YAML-based tests for commandline utilities
Project description
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
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
File details
Details for the file climactic-0.3.0.tar.gz
.
File metadata
- Download URL: climactic-0.3.0.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55bcd72df771049c1f5817f036238ea0ab25e1e3dd00f6d655dfd6bc2cdd0a17 |
|
MD5 | f231a354a92ac153c7af89e3b243dcd7 |
|
BLAKE2b-256 | 2f9dfbbd92af0a029fe5f1bc9be38eeecc9f12e422766fe99935aa5e356b2fc6 |