macOS
brew install kcovlocal Homebrew formula metadata
sudo port install kcovMacPorts ports tree · devel/kcov/Portfile · 来源: api.github.com
安装
brew install kcovlocal Homebrew formula metadata
sudo port install kcovMacPorts ports tree · devel/kcov/Portfile · 来源: api.github.com
sudo dnf install kcovFedora Rawhide package metadata · kcov · 来源: dl.fedoraproject.org
nix profile install nixpkgs#kcovnixpkgs package indexes · pkgs/by-name/kc/kcov/package.nix · 来源: api.github.com
sudo pacman -S kcovArch Linux sync databases · kcov · 来源: geo.mirror.pkgbuild.com
sudo zypper install kcovopenSUSE Tumbleweed package metadata · kcov · 来源: download.opensuse.org
概览
Code coverage tester for compiled programs, Python, and shell scripts
历史
kcov is a code coverage tool for compiled programs, Python, and shell scripts. Its README says it began as a fork of Bcov and uses DWARF debugging information so programs can be measured without special compiler switches.
Simon Kagstrom created the GitHub repository in August 2010. From the README's account, kcov started with Bcov's idea of using debug information for coverage and then expanded into a broader coverage-reporting tool with HTML, lcov-style output, Cobertura XML, JSON output, and CI integrations.
Release history documents platform and integration work through the 2010s and 2020s, including Docker images from v31, macOS binaries in v32, FreeBSD and macOS build work in v36, AArch64 support in release 38, RISC-V and Codecov updates in v41, and Cobertura/Jenkins fixes in v43.
The batch input records packages in Homebrew, Debian, Fedora, MacPorts, Nix, Arch, and openSUSE. Upstream docs also point to an official Docker image, making kcov available through both traditional package managers and container workflows.
A typical invocation runs kcov with an output directory and an executable plus arguments. Users filter included or excluded paths, merge multiple coverage runs, and publish reports to CI services such as Coveralls, Codecov, Jenkins, SonarQube, GitHub Actions, and GitLab CI.
kcov is notable because it brings coverage to binaries and scripts without requiring the build to be compiled with coverage instrumentation. For distro packagers and CI maintainers, that makes it useful for testing shell-heavy or mixed-language projects where gcov-style workflows are awkward.
安全态势
generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
kcov | cli | 全局可执行文件 | |
kcov-system-daemon | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/SimonKagstrom/kcov
安装元数据
| 软件包键 | brew:kcov |
|---|---|
| 版本 | 43 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/kcov |
| 主页 | https://simonkagstrom.github.io/kcov/ |
| 仓库 | https://github.com/SimonKagstrom/kcov |
| 上游文档 | https://github.com/SimonKagstrom/kcov#readme |
| 许可证 | GPL-2.0-or-later |
| 源码归档 | https://github.com/SimonKagstrom/kcov/archive/refs/tags/v43.tar.gz |
| 最后更新 | 2026-06-13T23:35:01+02:00 |
| Pulse | updated |
| 依赖 | dwarfutils, openssl@3 |
| 构建依赖 | cmake, pkgconf |
| macOS 提供的库 | curl |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | kcov |
| Version Scheme | 0 |
| Revision | 1 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
kcov 43+dfsg-1+b4
Code coverage analysis using DWARF debugging information
https://simonkagstrom.github.io/kcov/
sudo apt install kcovkcov
nix profile install nixpkgs#kcovkcov 43-4.fc44
Code coverage tool without special compilation options
https://simonkagstrom.github.io/kcov
sudo dnf install kcovkcov 43-1
Code coverage tester for compiled programs, Python scripts and shell scripts
https://simonkagstrom.github.io/kcov
sudo pacman -S kcovkcov 42-4.3
Code coverage tool without special compilation options
https://github.com/SimonKagstrom/kcov
sudo zypper install kcovkcov
sudo port install kcov来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.