You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Checks from subgroups should be aggregated at group level.
the "Checks stats" shows 4 checks
But only 2 checks are reported on the "Checks and Groups" tab
code to reproduce :
importhttpfrom'k6/http';import{check,group}from'k6';import{htmlReport}from"https://raw.githubusercontent.com/benc-uk/k6-reporter/2.3.1/dist/bundle.js";import{textSummary}from'https://jslib.k6.io/k6-summary/0.0.1/index.js';exportconstoptions={stages: [{target: 1,duration: '2s',},]}exportdefaultfunctiongo(){group('Group 1',function(){constresponse=http.get('https://test.k6.io');check(response,{'Group 1: is status 200': (r)=>r.status===200,});group('Group 1.1',function(){check(response,{'Group 1.1: is status 200': (r)=>r.status===200,});})});}exportfunctionhandleSummary(data){console.info('Preparing the end-of-test summary...');return{"summary.html": htmlReport(data),'stdout': textSummary(data,{indent: ' ',enableColors: true}),// Show the text summary to stdout...};}
Hello! I found another problem that is probably related to this problem. Here is the script code:
import http from 'k6/http';
import {group,check} from 'k6';
import {textSummary} from 'https://jslib.k6.io/k6-summary/0.0.1/index.js';
import {htmlReport} from 'https://raw.githubusercontent.com/benc-uk/k6-reporter/main/dist/bundle.js';
export const options={
stages:[
{target:1,duration:'0.1s'}
]
};
export default function Test() {
group('1. Test',function () {
group('1.1. Test',function () {
let response=http.get('https://test.k6.io');
check(response,{'Test check':(r) => r.status===200})
})
})
};
export function handleSummary(data) {
return {
"result.html":htmlReport(data),
stdout: textSummary(data,{indent:" ",enableColors:true}),
}
};
As a result on the "Checks & Groups" tab, there are no checks in the html report, even from parent groups:
Module developers, I ask you to fix this problem, please.
Checks from subgroups should be aggregated at group level.
the "Checks stats" shows 4 checks

But only 2 checks are reported on the "Checks and Groups" tab
The text was updated successfully, but these errors were encountered: