鱼皮AI导航
鱼皮AI导航
  • 主页
  • 社区
  • AI工具
  • AI知识库
  • AI提示词
  • MCP
  • Skills
  • AI学习资源
  • AI资讯
  • GitHub开源
登录/注册

regression-test

面向 voxtype 版本发布的回归验证能力,覆盖核心功能、CLI 命令行为、配置加载与兼容性、多指令集二进制变体、系统包格式及守护进程生命周期等维度,确保每次重大发布前整体行为稳定可靠。

测试与安全
访问 GitHub
文档Skills.MD
name
regression-test
description
Run regression tests for voxtype releases. Use before major releases to verify core functionality, CLI commands, and configuration handling.
user-invocabletrue
allowed-tools["Bash","Read","Glob","Grep"]

Regression Test

Comprehensive testing checklist for voxtype releases.

Quick Smoke Test

▼
bash
复制代码
# Build and basic checks cargo build --release ./target/release/voxtype --version ./target/release/voxtype --help ./target/release/voxtype setup --help

Unit Tests

▼
bash
复制代码
cargo test

Key test modules:

  • text:: - Spoken punctuation and replacements
  • cli:: - Command-line argument parsing
  • state:: - State machine transitions

CLI Command Tests

Setup Commands

▼
bash
复制代码
# List available models ./target/release/voxtype setup --list-models # Show current configuration ./target/release/voxtype setup --show-config # Check GPU detection (if available) ./target/release/voxtype setup gpu --status

Status Commands

▼
bash
复制代码
# Check daemon status (will fail if not running, that's ok) timeout 2 ./target/release/voxtype status || echo "Daemon not running (expected)" # JSON output format timeout 2 ./target/release/voxtype status --format json || echo "Daemon not running (expected)"

Transcription Test

▼
bash
复制代码
# Test with a sample audio file (if available) ./target/release/voxtype transcribe test.wav

Configuration Tests

Default Config Loading

▼
bash
复制代码
# Should not error with missing config rm -f ~/.config/voxtype/config.toml ./target/release/voxtype --help # Should load config without errors mkdir -p ~/.config/voxtype cp config/default.toml ~/.config/voxtype/config.toml ./target/release/voxtype setup --show-config

Config Backwards Compatibility

Test that old config files still work:

▼
bash
复制代码
# Create minimal old-style config cat > /tmp/test-config.toml << 'EOF' [hotkey] key = "SCROLLLOCK" [whisper] model = "base.en" EOF # Should not error ./target/release/voxtype --config /tmp/test-config.toml --help

Binary Variant Tests

For each binary variant, verify:

▼
bash
复制代码
VERSION=0.4.14 # AVX2 releases/${VERSION}/voxtype-${VERSION}-linux-x86_64-avx2 --version releases/${VERSION}/voxtype-${VERSION}-linux-x86_64-avx2 --help # AVX-512 releases/${VERSION}/voxtype-${VERSION}-linux-x86_64-avx512 --version releases/${VERSION}/voxtype-${VERSION}-linux-x86_64-avx512 --help # Vulkan releases/${VERSION}/voxtype-${VERSION}-linux-x86_64-vulkan --version releases/${VERSION}/voxtype-${VERSION}-linux-x86_64-vulkan --help

Integration Tests

Daemon Lifecycle

▼
bash
复制代码
# Start daemon ./target/release/voxtype & DAEMON_PID=$! sleep 2 # Check it's running ./target/release/voxtype status # Stop daemon kill $DAEMON_PID

Signal Handling

▼
bash
复制代码
./target/release/voxtype & DAEMON_PID=$! sleep 1 # SIGUSR1 should start recording (will fail without audio, ok) kill -USR1 $DAEMON_PID # SIGTERM should graceful shutdown kill -TERM $DAEMON_PID

Package Tests

Debian Package

▼
bash
复制代码
# Validate structure dpkg-deb --info releases/${VERSION}/voxtype_${VERSION}-1_amd64.deb # List contents dpkg-deb --contents releases/${VERSION}/voxtype_${VERSION}-1_amd64.deb # Check for required files dpkg-deb --contents releases/${VERSION}/voxtype_${VERSION}-1_amd64.deb | grep -E 'voxtype-avx2|voxtype-avx512|config.toml|voxtype.service'

RPM Package

▼
bash
复制代码
rpm -qp --info releases/${VERSION}/voxtype-${VERSION}-1.x86_64.rpm rpm -qp --list releases/${VERSION}/voxtype-${VERSION}-1.x86_64.rpm

Checklist for Major Releases

  • cargo test passes
  • cargo clippy has no warnings
  • All binary variants build successfully
  • Binary instruction validation passes (no AVX-512 in AVX2/Vulkan)
  • Version numbers match across all binaries
  • CLI --help output is correct
  • Default config loads without errors
  • Old configs still work (backwards compatibility)
  • Packages install correctly on target distros
  • Daemon starts and stops cleanly
  • Recording/transcription works end-to-end (manual test)

Known Test Limitations

  • Audio capture requires real audio hardware (can't fully test in CI)
  • evdev hotkey detection requires /dev/input access
  • Transcription requires downloaded Whisper model
  • GPU acceleration requires Vulkan-capable hardware
测试与安全

快捷安装

复制到终端去安装 Skill

npxskillsaddpeteonrails/voxtype--skill"regression-test"
站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
🔥热门工具
朱雀AI检测朱雀AI检测
朱雀AI检测助手朱雀AI检测助手
LovartLovart
老鱼简历老鱼简历
WritePass官网WritePass官网
面多多面多多
CursorCursor
星月写作星月写作
朱雀AI检测助手朱雀AI检测助手
零感AI零感AI
Skills 推荐
debug
debug 是一个系统化定位软件缺陷根因的技能,适用于用户报告 'fix'、'broken'、'error' 等问题或测试意外失败时。它通过可验证的假设、最小复现、因果链分析和回归测试,确保在修复前准确定位根本原因。
webapp-testing
提供本地 Web 应用的端到端测试能力,支持页面导航、元素交互、表单填写、动态等待、断言验证、截图捕获、浏览器日志收集及网络请求拦截,适用于前端功能验证与 UI 行为调试。
tdd-process
严格遵循测试驱动开发的红绿重构循环,强制执行先写测试、失败要有意义、实现最小化、验证全覆盖的全流程,确保每次代码变更都由可执行的测试用例驱动并经编译、检查与全量验证确认。
smoke-test
自动化创建 Mastra 项目并完成 Studio 全流程冒烟测试,涵盖项目初始化、环境配置、本地服务启动及 Chrome 浏览器中对 Agents、Tools、Workflows、Scorers 等核心模块的功能验证与截图记录。
property-based-testing
通过生成随机输入验证代码在各类边界条件下的行为一致性,适用于序列化、解析、归一化及纯函数等场景,能有效发现隐含缺陷并提升测试覆盖率,尤其适合需要高可靠性的算法与智能合约验证。