Registry / testing / actix-test

actix-test

JSON →
library0.1.5rscratesunverified

Integration testing tools for Actix Web applications.

# Cargo.toml [dependencies] actix-test = "0.1.5"
INSTALL
IMPORT
SIG · ACTIX-TEST
A
actix-test
testingrustv0.1.5
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.

TestRequest
use actix_test::TestRequest;

Creates a test request for Actix Web integration tests.

use actix_test::TestRequest; #[actix_web::test] async fn test_index() { let req = TestRequest::get().uri("/").to_request(); // Use with actix_web::test::call_service println!("TestRequest created"); }
Debug
Known issues
gotchaRequires actix-web and its test utilities; async runtime (tokio) must be set up.
fix
Add actix-web as a dependency and use #[actix_web::test] or tokio::test.
affects: >=0.1.0
Upgrade
Version history
0.1.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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