k6
k6 copied to clipboard
`setup()` and `teardown()` errors are not logged when invoked from REST API
trafficstars
If you run this script:
export const options = {
paused: true,
};
export function setup() {
console.log('foo')
throw new Error('bar');
}
export default function (data) {
}
And execute curl -iX POST 'http://localhost:6565/v1/setup' in another terminal, you would not see the script error bar in the terminal, but you'd see foo.