Comments (2)
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)
from cucumber-teamcity-formatter.
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.
from cucumber-teamcity-formatter.
Related Issues (10)
- The automated release is failing 🚨
- The automated release is failing 🚨 HOT 3
- Log skipped scenarios as ignored in team city HOT 2
- An in-range update of babel7 is breaking the build 🚨 HOT 2
- An in-range update of mocha is breaking the build 🚨 HOT 3
- An in-range update of gulp-cli is breaking the build 🚨 HOT 1
- An in-range update of terser-webpack-plugin is breaking the build 🚨 HOT 2
- TeamCity treats retried tests that fail and then pass as Failed HOT 2
- The automated release is failing 🚨
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cucumber-teamcity-formatter.