Open ghost opened 3 years ago
I've spent a little bit of time attempting to get this working with the latest version of cucumber by upgrading versions, but the unit tests are failing to pass and don't have the domain knowledge to understand how to fix this.
Please see the attached for an attempted patch.
Unit test errors:
1 passing (35ms)
7 failing
1) TeamCityFormatter
one scenario with one step
passed
"before each" hook for "outputs the TeamCity markers for the feature and scenario":
TypeError: Cannot read property 'testCaseId' of undefined
at EventDataCollector.getTestCaseAttempt (node_modules\@cucumber\cucumber\src\formatter\helpers\event_data_collector.ts:53:59)
at TeamCityFormatter.getTestCaseAttempt (src/cucumber-teamcity-formatter.js:42:37)
at Context.emit (test\unit/cucumber-teamcity-formatter.js:75:39)
at processImmediate (internal/timers.js:461:21)
2) TeamCityFormatter
one scenario with one step
test has failed status
"before each" hook for "includes the error message in the TeamCity markers":
TypeError: Cannot read property 'testCaseId' of undefined
at EventDataCollector.getTestCaseAttempt (node_modules\@cucumber\cucumber\src\formatter\helpers\event_data_collector.ts:53:59)
at TeamCityFormatter.getTestCaseAttempt (src/cucumber-teamcity-formatter.js:42:37)
at Context.emit (test\unit/cucumber-teamcity-formatter.js:111:43)
at processImmediate (internal/timers.js:461:21)
3) TeamCityFormatter
one scenario with one step
test has ambiguous status
"before each" hook for "includes the error message in the TeamCity markers":
TypeError: Cannot read property 'testCaseId' of undefined
at EventDataCollector.getTestCaseAttempt (node_modules\@cucumber\cucumber\src\formatter\helpers\event_data_collector.ts:53:59)
at TeamCityFormatter.getTestCaseAttempt (src/cucumber-teamcity-formatter.js:42:37)
at Context.emit (test\unit/cucumber-teamcity-formatter.js:111:43)
at processImmediate (internal/timers.js:461:21)
4) TeamCityFormatter
multiple scenarios with multiple steps
passed
"before each" hook for "outputs the TeamCity markers for the feature and scenario":
TypeError: Cannot read property 'testCaseId' of undefined
at EventDataCollector.getTestCaseAttempt (node_modules\@cucumber\cucumber\src\formatter\helpers\event_data_collector.ts:53:59)
at TeamCityFormatter.getTestCaseAttempt (src/cucumber-teamcity-formatter.js:42:37)
at Context.emit (test\unit/cucumber-teamcity-formatter.js:184:39)
at processImmediate (internal/timers.js:461:21)
5) TeamCityFormatter
multiple scenarios with multiple steps
skipped
"before each" hook for "outputs the TeamCity markers for the feature and scenario":
TypeError: Cannot read property 'testCaseId' of undefined
at EventDataCollector.getTestCaseAttempt (node_modules\@cucumber\cucumber\src\formatter\helpers\event_data_collector.ts:53:59)
at TeamCityFormatter.getTestCaseAttempt (src/cucumber-teamcity-formatter.js:42:37)
at Context.emit (test\unit/cucumber-teamcity-formatter.js:258:39)
at processImmediate (internal/timers.js:461:21)
6) TeamCityFormatter
multiple scenarios with multiple steps
test has failed status
"before each" hook for "includes the error message in the TeamCity markers":
TypeError: Cannot read property 'testCaseId' of undefined
at EventDataCollector.getTestCaseAttempt (node_modules\@cucumber\cucumber\src\formatter\helpers\event_data_collector.ts:53:59)
at TeamCityFormatter.getTestCaseAttempt (src/cucumber-teamcity-formatter.js:42:37)
at Context.emit (test\unit/cucumber-teamcity-formatter.js:333:43)
at processImmediate (internal/timers.js:461:21)
7) TeamCityFormatter
multiple scenarios with multiple steps
test has ambiguous status
"before each" hook for "includes the error message in the TeamCity markers":
TypeError: Cannot read property 'testCaseId' of undefined
at EventDataCollector.getTestCaseAttempt (node_modules\@cucumber\cucumber\src\formatter\helpers\event_data_collector.ts:53:59)
at TeamCityFormatter.getTestCaseAttempt (src/cucumber-teamcity-formatter.js:42:37)
at Context.emit (test\unit/cucumber-teamcity-formatter.js:333:43)
at processImmediate (internal/timers.js:461:21)
Hi @irismartinkennish, sorry for the very late reply. I don't have any projects that use cucumberjs any more, but in the latest version they've completely changed the way reporters work and I'd have to rewrite this from scratch. It's not really something I have the capacity to do right now.
This package doesn't work with the latest version of cucumber, nor does it work with the new @cucumber/cucumber packages.
I get this error when attempting to run with cucumber 7.0.0-rc.0: