Skip to main content

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 support

  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

climactic-0.2.2.tar.gz (7.1 kB view details)

Uploaded Source

File details

Details for the file climactic-0.2.2.tar.gz.

File metadata

  • Download URL: climactic-0.2.2.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for climactic-0.2.2.tar.gz
Algorithm Hash digest
SHA256 13ce6a4fbb6b13c67afa12b24eabde105e8d7a1a6f45bda6ed929e81fe1ac601
MD5 ba1cab30c9855b2577b10adbcfcd6343
BLAKE2b-256 c3f3e50b160a4ee9e6b64b7b0378e599d4f1a26dfd01d29fd128c6c6df3286e4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page