@@ -1229,7 +1229,7 @@ describe(`cucumber@${version} commonJS`, () => {
12291229
12301230 // Only tests from the non-skipped suite ran
12311231 const tests = events . filter ( event => event . type === 'test' ) . map ( event => event . content )
1232- assert . ok ( tests . length > 0 )
1232+ assert . ok ( tests . length > 0 , `Expected ${ tests . length } > 0` )
12331233 tests . forEach ( test => {
12341234 assert . ok ( ! test . meta [ TEST_SUITE ] . includes ( 'farewell' ) )
12351235 } )
@@ -2563,7 +2563,10 @@ describe(`cucumber@${version} commonJS`, () => {
25632563 'nyc output does not match the reported coverage (no --all flag)' )
25642564
25652565 eventsPromise . then ( ( ) => {
2566- assert . ok ( codeCoverageWithoutUntestedFiles > codeCoverageWithUntestedFiles )
2566+ assert . ok (
2567+ codeCoverageWithoutUntestedFiles > codeCoverageWithUntestedFiles ,
2568+ `Expected ${ codeCoverageWithoutUntestedFiles } > ${ codeCoverageWithUntestedFiles } `
2569+ )
25672570 done ( )
25682571 } ) . catch ( done )
25692572 } )
@@ -2904,7 +2907,7 @@ describe(`cucumber@${version} commonJS`, () => {
29042907 const atfTests = tests . filter (
29052908 t => t . meta [ TEST_MANAGEMENT_IS_ATTEMPT_TO_FIX ] === 'true'
29062909 )
2907- assert . ok ( atfTests . length > 0 )
2910+ assert . ok ( atfTests . length > 0 , `Expected ${ atfTests . length } > 0` )
29082911 for ( const test of atfTests ) {
29092912 assert . ok (
29102913 ! ( TEST_IS_NEW in test . meta ) ,
@@ -3434,7 +3437,7 @@ describe(`cucumber@${version} commonJS`, () => {
34343437 . gatherPayloadsMaxTimeout ( ( { url } ) => url . endsWith ( '/api/v2/citestcycle' ) , payloads => {
34353438 const metadataDicts = payloads . flatMap ( ( { payload } ) => payload . metadata )
34363439
3437- assert . ok ( metadataDicts . length > 0 )
3440+ assert . ok ( metadataDicts . length > 0 , `Expected ${ metadataDicts . length } > 0` )
34383441 metadataDicts . forEach ( metadata => {
34393442 assert . strictEqual ( metadata . test [ DD_CAPABILITIES_TEST_IMPACT_ANALYSIS ] , '1' )
34403443 assert . strictEqual ( metadata . test [ DD_CAPABILITIES_EARLY_FLAKE_DETECTION ] , '1' )
0 commit comments