| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
mod config; |
| 5 |
mod metrics; |
| 6 |
mod runner; |
| 7 |
mod scenarios; |
| 8 |
|
| 9 |
use config::LoadConfig; |
| 10 |
|
| 11 |
#[tokio::test] |
| 12 |
#[ignore] |
| 13 |
async fn load_test() { |
| 14 |
let config = LoadConfig::from_env(); |
| 15 |
println!("\n=== Load Test Configuration ==="); |
| 16 |
println!(" Virtual users: {}", config.virtual_users); |
| 17 |
println!(" Duration: {:?}", config.duration); |
| 18 |
println!(" Ramp-up: {:?}", config.ramp_up); |
| 19 |
println!(" Think time: {:?}", config.think_time); |
| 20 |
println!(" DB max connections: {}", config.db_max_connections); |
| 21 |
println!(" Scenario mix: {:?}", config.scenario_mix); |
| 22 |
println!(); |
| 23 |
|
| 24 |
runner::run(config).await; |
| 25 |
} |
| 26 |
|