Hello All,
Running tests
locally: load tests run, the handleSummary function gets called afterwards.
AWS CodeBuild: load tests run, the handleSummary function doesn’t get called.
Why is the function not being called in AWS?
import http from 'k6/http';
import { sleep } from 'k6';
import { htmlReport } from 'https://raw.githubusercontent.com/benc-uk/k6-reporter/main/dist/bundle.js';
import { helper } from '../../utils/helper.js';
export default function () {
http.get('https://test.k6.io');
sleep(1);
}
export async function handleSummary(data) {
return {
[helper.setFileName()]: htmlReport(data),
};
}