# testscript mit Homebrew installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für testscript in AI-Agent-Workflows.

## Installation

```sh
sudo av install brew:testscript
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install testscript
```

  Evidenz: local Homebrew formula metadata

## Paketfakten

- **Paketschlüssel:** brew:testscript
- **Paketmanager:** Homebrew
- **Paketmanager-Seite:** <https://formulae.brew.sh/formula/testscript>
- **Version:** 1.15.0
- **Quellzusammenfassung:** Integration tests for command-line applications in .txtar format
- **Homepage:** <https://github.com/rogpeppe/go-internal/tree/master/cmd/testscript>
- **Repository:** <https://github.com/rogpeppe/go-internal>
- **Upstream-Dokumentation:** <https://github.com/rogpeppe/go-internal/tree/master/cmd/testscript>
- **Lizenz:** BSD-3-Clause
- **Quellarchiv:** <https://github.com/rogpeppe/go-internal/archive/refs/tags/v1.15.0.tar.gz>
- **Zuletzt aktualisiert:** 2026-07-26T00:50:38+02:00
- **Generiert:** 2026-08-04T22:13:35+00:00

## Executables

- testscript (cli)
- testscript (Alias)

## Build-Abhängigkeiten

- go

## Installationsverhalten

- Post-install-Hook: nicht definiert
- Bottle: verfügbar auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version und Aktualität

- Seite generiert: 2026-08-04
- Manager-Version: 1.15.0
- Manager aktualisiert: 2026-07-26
- lokale Daten: OK
- Upstream-Repository: https://github.com/rogpeppe/go-internal
- neueste erkannte Version: v1.15.0 (aktuell)
## Projektgeschichte und Nutzung

testscript is a small Go-oriented command and package for running filesystem-based command scripts, often stored as txtar files, in fresh temporary work directories.

### Projektgeschichte

The rogpeppe/go-internal repository was created in September 2018 and describes itself as selected Go-internal packages factored out from the standard library. The testscript package source carries Go Authors copyright notices from 2018 and documents the same script-testing style used around Go command tests.

The Homebrew formula packages the cmd/testscript executable from that repository rather than a large standalone application. Its command README says testscript runs scripts in fresh temporary work directory trees and is designed for self-contained reproductions of command sequences.

### Adoptionsgeschichte

testscript's adoption is mostly inside the Go developer-tools niche: Go projects use it to write integration-style command tests with embedded fixture files, expected stdout and stderr checks, and temporary working trees.

In package-manager terms it is a niche but useful binary: installing it gives developers a direct runner for .txtar or .txt scripts without embedding it into a Go test harness.

### Wie es verwendet wird

The command runs files passed on the command line, supports environment passthrough with -e, updates embedded expected files with -u, and can preserve the temporary work directory with -work for debugging.

The package API is used from Go tests with testscript.Run, where a testdata directory contains txtar or txt scripts and each script defines a subtest.

### Warum Paket-Nerds sich dafür interessieren

testscript is the kind of tool package nerds notice because it turns a testing convention into a standalone command. It is especially relevant for maintainers of CLIs, compilers, formatters, and other command-line programs where golden command transcripts are easier to review than custom Go test code.

Its use of txtar keeps test fixtures and scripts in one text file, making it friendly to source-control review and reproducible bug reports.

### Zeitleiste

- 2018: rogpeppe/go-internal repository created and testscript package documentation appears with Go Authors copyright.
- 2018: Example txtar module proxy data in the command README uses a 2018 timestamp, matching the Go modules testing era.
- 2026: Repository metadata shows continued updates.

### Related projects

- Go cmd/go tests, golang.org/x/tools/txtar, go-internal/goproxytest, Go module proxy testing, and command-line integration test harnesses.

### Quellen

- <https://github.com/rogpeppe/go-internal repository metadata>
- <https://github.com/rogpeppe/go-internal/tree/master/cmd/testscript README>
- <https://pkg.go.dev/github.com/rogpeppe/go-internal/testscript>
- input.source_facts.package-manager


## Sicherheitshinweise

narrow executable package without higher-risk signals.

- **Geiger-Risiko:** grün / niedrig
- narrow executable package without higher-risk signals

## Details aus der Quelldatenbank

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** testscript
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## Verwandte Links

- [Source-control packages](https://pkg.so/de/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/de/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/de/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/de/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/de/brew/go/) - Build dependency declared by Homebrew.
- [mockery](https://pkg.so/de/brew/mockery/) - Shares pkgdb curated category or tags: cli, developer-tools, go, testing.
- [gotestsum](https://pkg.so/de/brew/gotestsum/) - Shares pkgdb curated category or tags: cli, developer-tools, go, testing.
- [gotests](https://pkg.so/de/brew/gotests/) - Shares pkgdb curated category or tags: cli, developer-tools, go, testing.
- [richgo](https://pkg.so/de/brew/richgo/) - Shares pkgdb curated category or tags: cli, developer-tools, go, testing.
- [beakerlib](https://pkg.so/de/brew/beakerlib/) - Shares pkgdb curated category or tags: cli, developer-tools, integration-testing, testing.
- [htmltest](https://pkg.so/de/brew/htmltest/) - Shares pkgdb curated category or tags: cli, developer-tools, go, testing.
- [counterfeiter](https://pkg.so/de/brew/counterfeiter/) - Shares pkgdb curated category or tags: cli, developer-tools, go, testing.
- [gor](https://pkg.so/de/brew/gor/) - Shares pkgdb curated category or tags: cli, developer-tools, go, testing.
- [yamlfmt](https://pkg.so/de/brew/yamlfmt/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, command-line, developer, developer-tools, format.

## Combined YAML source

View the package source record on GitHub. [combined/testscript.yml](https://github.com/mxcl/pkgdb/blob/main/combined/testscript.yml)


## Quellen

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
