I’m new to k6, and am currently looking at how to configure CSV results output. My challenge is that I’m not sure where to set these options.
The documentation says you can configure some things (e.g timestamp) with options: https://k6.io/docs/results-output/real-time/csv/#csv-options
However, I’m not sure where to set these options? I’m aware that you can declare options in an options
object, but I’m not sure where in this object you would declare the CSV options? e.g I’ve tried the below and it does not work:
export const options = {
timeFormat: "rfc3339_nano"
}
Side note: I have managed to get the CSV options working by setting env vars e.g doing a export K6_CSV_TIME_FORMAT="rfc3339_nano"
before running k6. However, I’d prefer to reduce the number of places I’m setting configuration if possible.