Skip to content

Fix --json-file (actually save data to file) #3131

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

Merged
merged 1 commit into from
May 7, 2025
Merged

Conversation

zed
Copy link
Contributor

@zed zed commented May 7, 2025

It fixes #3130

@cyberw
Copy link
Collaborator

cyberw commented May 7, 2025

Oh damn. Can you also fix the test case to validate the contents of the file?

@cyberw cyberw changed the title actually, save stats to the json file Fix --json-file (actually save data to file) May 7, 2025
@zed
Copy link
Contributor Author

zed commented May 7, 2025

I've extended the test to make sure that json file is not empty.

@cyberw cyberw merged commit acc8280 into locustio:master May 7, 2025
15 checks passed
@brtkwr
Copy link
Contributor

brtkwr commented Jun 6, 2025

I see --json-file option in 2.37.0 but not in 2.37.1 and above. Anyone else?

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

Successfully merging this pull request may close these issues.

--json-file always creates empty file
3 participants