fritzprix/libr-agent/rust-integration-test-scaffolder

Claude Code and agent skill by fritzprix/libr-agent

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Scaffold integration tests in src-tauri/tests/ following the project's strict rules. Use when creating new Rust tests, ensuring CI compatibility, or preventing false sense of test coverage from unit tests in src/.

Install

npx vskill@latest install fritzprix/libr-agent/rust-integration-test-scaffolder

SKILL.md

The same SKILL.md was published earlier as fritzprix/libr-agent/rust-integration-test-scaffolder.

Rust Integration Test Scaffolder

Scaffold integration tests for LibrAgent following the project's strict testing rules.

Critical Rule

CI / `pnpm rust:test` runs `--lib` first, then each `tests/*.rs` target one at a time.

  • #[cfg(test)] blocks inside src/ do run via the sequential --lib step
  • Prefer tests/ for full Tauri/DB harness coverage (especially Windows-safe root crates)
  • Windows --lib needs the ComCtl32 v6 linker dependency from build.rs (#2122)
  • test = false in Cargo.toml keeps bare cargo test from auto-building the lib harness; the runner passes --lib explicitly

Template

rust
use sqlx::sqlite::SqlitePoolOptions;
use sea_orm::SqlxSqliteConnector;
use tauri_mcp_agent_lib::migration::Migrator;
use sea_orm_migration::MigratorTrait;
async fn setup_db() -> sea_orm::DatabaseConnection {
let pool = SqlitePoolOptions::new()
.connect("sqlite::memory:")
.await
.unwrap();
let db = SqlxSqliteConnector::from_sqlx_sqlite_pool(pool);
Migrator::up(&db, None).await.unwrap();
db
}
#[tokio::test]
async fn test_descriptive_name() {
let db = setup_db().await;
// Test implementation here
}

Test Categories

Database/Repository Tests
  • Test SeaORM entity mappings
  • Test repository queries
  • Test migration up/down
  • Test foreign key constraints
MCP Integration Tests
  • Test builtin server tool execution
  • Test session isolation
  • Test MCPServiceProxy routing
  • Test external MCP server connection
Command Handler Tests
  • Test Tauri command inputs/outputs
  • Test error handling paths
  • Test permission validation

Placement

  • src-tauri/tests/<module>_tests.rs - Integration tests by module
  • Use descriptive filenames matching the module being tested

Verification

bash
# Run all integration tests (CI command)
cargo test --tests
# Run specific test file
cargo test --test <file_stem>

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/fritzprix/libr-agent/rust-integration-test-scaffolder/badge)](https://verified-skill.com/skills/fritzprix/libr-agent/rust-integration-test-scaffolder)

Something wrong with this skill or its page? Tell us.