testscript
« Back to VersTracker
Description:
Integration tests for command-line applications in .txtar format
Type: Formula  |  Latest Version: 1.14.1@0  |  Tracked Since: Oct 10, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: testing cli integration-tests golang txtar
Install: brew install testscript
About:
testscript is a command-line tool that executes integration tests defined in simple .txtar archive files. It creates temporary filesystems from these archives, runs specified commands against them, and verifies the expected output. This provides a lightweight, self-contained method for testing complex command-line workflows and reproducible environments.
Key Features:
  • Declarative test definitions using .txtar format
  • Automatic setup and teardown of isolated test environments
  • Built-in commands for filesystem manipulation and execution
  • Reproducible and portable test execution
Use Cases:
  • Testing CLI application behavior in controlled filesystem states
  • Verifying installation scripts and package managers
  • Automating complex shell script workflows
Alternatives:
  • bats – Bats uses shell scripts for assertions, while testscript uses declarative archive files for environment setup.
  • shunit2 – shunit2 is a xUnit-style framework for shell, whereas testscript focuses on end-to-end integration testing via filesystem snapshots.
Version History
Detected Version Rev Change Commit
Oct 10, 2025 6:12pm 0 VERSION_BUMP f29e39c9
Sep 12, 2025 4:22am 0 VERSION_BUMP b9f6c7e6
Sep 12, 2024 11:12pm 0 VERSION_BUMP 5a095c11