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

Improve the simple console output #152

Open
julienw opened this issue Jan 30, 2023 · 1 comment
Open

Improve the simple console output #152

julienw opened this issue Jan 30, 2023 · 1 comment

Comments

@julienw
Copy link

julienw commented Jan 30, 2023

When running molotov in a docker container, we have to use the simple console output, but it's not as good as the normal output. Especially we don't see the successes and failures until the end, and that's when running --single-run. When running with --sizing I had to kill the docker container and then I couldn't see any very useful output. Sometimes Ctrl-C works, and then we see the success/failures output.

All we see is a succession of:

[W:5] Ran 10 scenarios
[W:37] Setting up session
[W:37] Running scenarios
[W:38] Setting up session
[W:38] Running scenarios
[W:39] Setting up session
[W:39] Running scenarios

The progress can be followed with Ran 10 scenarios output, but that's not good enough.
It would be good to see regularly a progress of success/failures accross all workers.

Thanks!

@tarekziade
Copy link
Owner

Try using the new session.print API: https://github.com/tarekziade/molotov/blob/main/molotov/tests/example10.py#L16

Beware that this can end up generating a lot of output, unless you use a mod againstcontext.step for example to print out every n run

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