artillery
artillery copied to clipboard
Feature Request - Only Output Final Report
Currently, if you don't want a ton of console output from Artillery, you need to use the --quiet
mode, which suppresses pretty much everything.
I would like a flag that disables the "recurring" messages that appears every 10 seconds, since that can really clutter up a console output for long-running stress tests. I would still like the final report to be displayed like normal.
Sample Recurring Message:
--------------------------------------
Metrics for period to: 15:01:20(-0500) (width: 9.206s)
--------------------------------------
http.codes.200: ................................................................ 166
http.downloaded_bytes: ......................................................... 15602351
http.request_rate: ............................................................. 23/sec
http.requests: ................................................................. 207
http.response_time:
min: ......................................................................... 22
max: ......................................................................... 7850
median: ...................................................................... 487.9
p95: ......................................................................... 5711.5
p99: ......................................................................... 6838
http.responses: ................................................................ 166
plugins.expect.ok: ............................................................. 166
plugins.expect.ok.hasProperty: ................................................. 166
vusers.completed: .............................................................. 9
vusers.created: ................................................................ 50
vusers.created_by_name.0: ...................................................... 50
vusers.failed: ................................................................. 0
vusers.session_length:
min: ......................................................................... 1161.3
max: ......................................................................... 8478.8
median: ...................................................................... 5487.5
p95: ......................................................................... 8186.6
p99: ......................................................................... 8186.6
I would be happy to work on this. @hassy if you think it is worthwhile, will you please assign me? I previously made PR #2348.
Nice idea, this flag should also suppress the tedious output from the expect plugin which is pretty useless, we could have only the final json report outputted (enabling users piping to jq).
EDIT: I also found this to silent expect verbosity
expect:
reportFailuresAsErrors: true
outputFormat: silent