armature-testing
Testing utilities for the Armature framework.
Features
- Test Client - HTTP client for testing handlers
- Mock Services - Mock external dependencies
- Fixtures - Database and state fixtures
- Assertions - HTTP response assertions
- Integration Tests - Full application testing
Installation
[]
= "0.1"
Quick Start
use ;
async
Test Client
let client = new;
// GET request
let resp = client.get.send.await;
// POST with JSON
let resp = client.post
.json
.send
.await;
// With headers
let resp = client.get
.header
.send
.await;
Assertions
assert_status!;
assert_json!;
assert_header!;
License
MIT OR Apache-2.0