Registry / testing / actix-testing

actix-testing

JSON →
library1.0.1rscratesunverified

Various helpers for testing Actix applications.

# Cargo.toml [dependencies] actix-testing = "1.0.1"
INSTALL
IMPORT
SIG · ACTIX-TESTING
A
actix-testing
testingrustv1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TestServer
use actix_testing::TestServer;

Starts a test server and sends a request.

use actix_testing::TestServer; fn main() { let server = TestServer::new(|| actix_web::App::new().route("/", actix_web::web::get().to(|| async { "Hello" }))); let client = server.client(); let resp = client.get("/").send().unwrap(); println!("{}", resp.status()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
47 hits · last 30 days
node
36
OpenAI (training)
1
Resources
actix-testing — cargo add actix-testing · libregistry