salvo-testing

Automate unit and integration testing for Salvo applications with TestClient.

1|Updated Mar 16, 2024
One-click install
npx skills add https://github.com/tdcare/genies --skill salvo-testing-tdcare
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: salvo-testing
Source: https://github.com/tdcare/genies/tree/main/.qoder/skills/salvo-testing
Command: npx skills add https://github.com/tdcare/genies --skill salvo-testing-tdcare

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides structured testing approaches for Salvo applications, enabling reliable unit and integration tests with TestClient.

Core Features & Use Cases

  • Built-in testing utilities for Salvo handlers, middleware, and endpoints
  • Example test patterns for async Rust tests using TestClient
  • Use Case: verify API responses, middleware behavior, and routing logic in a CI workflow

Quick Start

Write tests for a Salvo handler using TestClient to assert expected responses and error handling.

Frequently Asked Questions about salvo-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write integration tests for Salvo web service handlers?

To write integration tests for Salvo handlers, use the built-in TestClient utility to send asynchronous requests and assert expected API responses and error handling behavior. This enables deterministic end-to-end verification of routing logic in Rust.

Can I test Salvo middleware behavior using TestClient in async Rust tests?

Yes, you can test Salvo middleware behavior using TestClient within Rust's async test framework. The skill provides structured test patterns to verify middleware execution and endpoint integration deterministically across your Salvo application.

What Salvo version is required for unit testing with TestClient?

Unit testing with TestClient requires Salvo 0.89.3 or compatible features. You also need Rust's async test framework configured to execute deterministic tests for your handlers and API endpoints.

What is the best way to automate API endpoint verification for a Salvo application in CI?

The best way to automate API endpoint verification for a Salvo application is using TestClient in async Rust tests. This approach verifies API responses, middleware behavior, and routing logic deterministically within a CI workflow.

Does unit testing for Salvo apps require external dependencies or test client libraries?

No external dependencies are required. Salvo provides built-in testing utilities and TestClient to automate unit and integration testing natively for handlers, middleware, and endpoints within the async Rust environment.

Why are my async Salvo integration tests failing to execute deterministically?

Async Salvo integration tests fail deterministically when not using Rust's async test framework properly. Ensure you use TestClient with Salvo 0.89.3 compatible features to execute asynchronous tests for handlers and middleware reliably.