pkg.soopen package index

brew / rang 10254

Installer testscript avec Homebrew

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de testscript pour les workflows d'agents IA.

installation

Commandes d'installation supplémentaires

macOS

Homebrewvérifié · 100%
brew install testscript

local Homebrew formula metadata

aperçu

Résumé du paquet

Integration tests for command-line applications in .txtar format

Commandes et alias

  • testscript

historique

Historique du projet et usages

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.

Historique du projet

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.

Historique d'adoption

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.

Modes d'utilisation

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.

Pourquoi les passionnés de paquets s'y intéressent

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.

Chronologie

  • 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.

posture de sécurité

Niveau de risque : vert

narrow executable package without higher-risk signals.

Classificateur de risque

risque vert · confiance faible · appliance

Pourquoi

  • narrow executable package without higher-risk signals

Signaux

  • metadata:no-higher-risk-signals

Comportement d'installation

  • Aucune métadonnée de bottle Homebrew n’a été enregistrée.

Revue recommandée

Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.

exécutables

Exécutables installés

CommandeTypeExpositionNote
testscriptexécutableexécutable indexéDécouvert depuis l'index local des exécutables.

fraîcheur

Version et fraîcheur

Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.

page générée2026-08-03
version du gestionnaire1.15.0
gestionnaire mis à jour2026-07-26
données localesinconnu
amontnon disponible
dernière version détectéenon détecté
  • OKAucun avertissement de fraîcheur n'a été généré.

métadonnées d'installation

Métadonnées du paquet

Clé du paquetbrew:testscript
Version1.15.0
Gestionnaire de paquetsHomebrew
Page d'accueilhttps://github.com/rogpeppe/go-internal/tree/master/cmd/testscript
Dépôthttps://github.com/rogpeppe/go-internal
Dernière mise à jour2026-07-26T00:50:38+02:00
Pulseupdated
Bouteillenon enregistré
Serviceaucun déclaré

piste source

Généré depuis les données du dépôt

Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.

Sources utilisées

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • pkg.so package database
  • pkgdb category and tag curation