cram
« Back to VersTracker
Description:
Functional testing framework for command-line applications
Type: Formula  |  Latest Version: 0.7@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: testing cli framework shell development
Install: brew install cram
About:
Cram is a lightweight, functional testing framework designed for command-line applications. It validates command output and exit codes using a simple diff-based format, making it ideal for testing shell scripts and CLI tools. Its straightforward syntax and integration capabilities streamline the process of ensuring command-line tools behave as expected.
Key Features:
  • Simple, human-readable test format
  • Validates stdout, stderr, and exit codes
  • Integrates with Python and other build systems
  • Cross-platform compatibility
Use Cases:
  • Testing shell scripts and automation tools
  • Verifying command-line application behavior
  • Documentation testing (doctests for CLI)
Alternatives:
  • bats – Bash-based testing framework, more verbose but native to Bash
  • pytest – General Python testing framework, requires more boilerplate for CLI testing
License: GPL-2.0-or-later
Dependencies: python@3.14
Bottles available for: all
Version History
Detected Version Rev Change Commit