macOS
brew install cramlocal Homebrew formula metadata
sudo port install cramMacPorts ports tree · devel/cram/Portfile · 来源: api.github.com
安装
brew install cramlocal Homebrew formula metadata
sudo port install cramMacPorts ports tree · devel/cram/Portfile · 来源: api.github.com
sudo apt install python3-cramDebian stable package indexes · python3-cram · 来源: deb.debian.org
概览
Functional testing framework for command-line applications
历史
Cram is a functional testing framework for command-line applications, built around test files that look like annotated interactive shell sessions.
Cram's official site describes tests as snippets of interactive shell sessions: commands are run, and their actual output is compared with expected output stored in `.t` files.
The project's NEWS file shows a compact release history from 0.1 in 2010 through 0.7 in 2016. Over that period it gained interactive update support, regex and glob matching, temporary-directory isolation, Python 3 support, `.cramrc`, shell selection, and xUnit XML output.
Developers use Cram for black-box CLI tests where shell commands and expected output are easier to review than imperative test code. It prints unified diffs for failures, can write `.err` files, and can interactively merge observed output back into tests.
Cram has lasting package-manager appeal because it tests command-line behavior at the packaging boundary. A formula or distro maintainer can exercise installed commands exactly as users run them, without importing the application as a library.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
cram | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:cram |
|---|---|
| 版本 | 0.7 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/cram |
| 主页 | https://bitheap.org/cram |
| 仓库 | https://github.com/aiiie/cram |
| 上游文档 | https://bitheap.org/cram |
| 许可证 | GPL-2.0-or-later |
| 源码归档 | https://files.pythonhosted.org/packages/38/85/5a8a3397b2ccb2ffa3ba871f76a4d72c16531e43d0e58fc89a0f2983adbd/cram-0.7.tar.gz |
| 依赖 | python@3.14 |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cram |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
python3-cram 0.7-6
functional testing framework for command line applications - Python 3.x
sudo apt install python3-crampython3-cram 0.7-5
functional testing framework for command line applications - Python 3.x
sudo apt install python3-cramcram
sudo port install cram来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.