How to change the directory junit.xml output

Hi all,
recently Load Impact launched K6 v 0.30.0 and happy for the new features.
today I want to ask you guys if do you happen to know how Can I change the output path when I use the jUnit module?

i.e

export function handleSummary(data) {
  console.log('Preparing the end-of-test summary...');

  return {
      'stdout': textSummary(data, { indent: ' ', enableColors: true}), // Show the text summary to stdout...
      'xmloutput.xml': jUnit(data) // this is being saved into the root "/" path but I need to set up another
      'summary.json': JSON.stringify(data), // and a JSON with all the details...
  }
}

thanks!

Just specify a different save path as the key in the returned value:

export function handleSummary(data) {
  console.log('Preparing the end-of-test summary...');

  return {
      'stdout': textSummary(data, { indent: ' ', enableColors: true}), // Show the text summary to stdout...
      '../../some/other/relative/folder/xmloutput.xml': jUnit(data) // this is being saved into the root "/" path but I need to set up another
      '/another/absolute/folder/path/summary.json': JSON.stringify(data), // and a JSON with all the details...
  }
}
1 Like

trivial.
I appreciated it!!!