pkg.soopen package index

brew / 排名 10246

使用 Homebrew 安装 testscript

查看 testscript 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install testscript

local Homebrew formula metadata

概览

软件包摘要

Integration tests for command-line applications in .txtar format

命令和别名

  • testscript

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

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

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
testscriptcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-04
管理器版本1.15.0
管理器更新时间2026-07-26
本地数据OK
上游当前
检测到的最新版本v1.15.0

https://github.com/rogpeppe/go-internal

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:testscript
版本1.15.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/testscript
主页https://github.com/rogpeppe/go-internal/tree/master/cmd/testscript
仓库https://github.com/rogpeppe/go-internal
上游文档https://github.com/rogpeppe/go-internal/tree/master/cmd/testscript
许可证BSD-3-Clause
源码归档https://github.com/rogpeppe/go-internal/archive/refs/tags/v1.15.0.tar.gz
最后更新2026-07-26T00:50:38+02:00
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nametestscript
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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