Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No summary when test is finished #374

Closed
huwwynnjones opened this issue Oct 29, 2021 · 2 comments
Closed

No summary when test is finished #374

huwwynnjones opened this issue Oct 29, 2021 · 2 comments

Comments

@huwwynnjones
Copy link

huwwynnjones commented Oct 29, 2021

hello
I am running a load test. I get the metrics output when the users are hatched, but once the load test finishes the final summary output is not showing up.

[xxx@localhost goose_test]$ cargo run --release -- --running-metrics 2 Finished release [optimized] target(s) in 0.08s Running target/release/goose_test --running-metrics 2`

=== PER TASK METRICS ===

Name | # times run | # fails | task/s | fail/s

1: LoadTest |
1: | 0 | 0 (0%) | 0.00 | 0.00

Name | Avg (ms) | Min | Max | Median

1: LoadTest |
1: | 0.00 | 0 | 0 | 0

Name | Status codes

-------------------------+----------------------------------------------------
Aggregated |

All 8 users hatched, resetting metrics (disable with --no-reset-metrics).

[xxx@localhost goose_test]$ `

I have this setup:

.set_default(GooseDefault::RunTime, 30)? .set_default(GooseDefault::Host, HOST)? .set_default(GooseDefault::ThrottleRequests, 5)? .set_default(GooseDefault::StatusCodes, true)?

Thanks

@jeremyandrews
Copy link
Member

jeremyandrews commented Nov 2, 2021

Is it possible to include a complete minimal code example to duplicate this? I am unable to duplicate based on what you have provided.

Be sure when you invoke GooseAttack that it ends with .print();, such as from the Goose Book example:

#[tokio::main]
async fn main() -> Result<(), GooseError> {
    GooseAttack::initialize()?
        .register_taskset(taskset!("LoadtestTasks")
            .register_task(task!(loadtest_index))
        )
        .execute()
        .await?
        .print();

    Ok(())
}

@huwwynnjones
Copy link
Author

Thanks for replying. Your guess is correct, I had missed adding .print(). Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants