Comments (13)
@Vovanchik is this file the actual report that cucumber-js outputs ? or you have tweaked it.
I'm asking this, because the structure of the file differs from what cucumber-java outputs ...
from bootstraped-multi-test-results-report-plugin.
this is the structure of cucumber-java json reports
[
{
"id": "account-holder-withdraws-cash",
"tags": [
{
"name": "@super",
"line": 1
}
],
"description": "As a Account Holder\nI want to withdraw cash from an ATM\nSo that I can get money when the bank is closed",
"name": "Account Holder withdraws cash",
"keyword": "Feature",
"line": 2,
"elements": [
{
"description": "",
"name": "Activate Credit Card",
"keyword": "Background",
"line": 7,
"steps": [
{
"result": {
"duration": 107447000,
"status": "passed"
},
"name": "I have a new credit card",
"keyword": "Given ",
"line": 8,
"match": {
"location": "ATMScenario.I_have_a_new_credit_card()"
}
},
{
"result": {
"duration": 16000,
"status": "passed"
},
"name": "I confirm my pin number",
"keyword": "When ",
"line": 9,
"match": {
"location": "ATMScenario.I_confirm_my_pin_number()"
}
},
{
"result": {
"duration": 14000,
"status": "passed"
},
"name": "the card should be activated",
"keyword": "Then ",
"line": 10,
"match": {
"location": "ATMScenario.the_card_should_be_activated()"
}
}
],
"type": "background"
}
],
"uri": "net/masterthought/example/ATM.feature"
}
]
and this is what you have provided
{
"name": "REQ#2 - Delete assessment",
"id": "Assessment;req#2---delete-assessment",
"line": 18,
"keyword": "Scenario",
"description": "",
"type": "scenario",
"tags": [
{
"name": "@PROD",
"line": 17
},
{
"name": "@PATIENT",
"line": 17
},
{
"name": "@ASSESMENTS",
"line": 17
}
],
"steps": [
{
"name": "I am on the login page",
"line": 19,
"keyword": "Given ",
"result": {
"status": "passed",
"duration": 1681118300
},
"match": {
"location": "/data/build/branches/Registry-Trunk-UI/cucumber_js/tests-ui-js/src/test/features/step_definitions/assessments/assessments_steps.js:40"
}
},
{
"name": "I should login as \"administrator\" and \"123qweasd\" password",
"line": 20,
"keyword": "Then ",
"result": {
"status": "undefined"
}
},
{
"name": "I should open patient",
"line": 21,
"keyword": "Then ",
"result": {
"status": "undefined"
}
},
{
"name": "I should add \"Asthma Initiative\" assessment",
"line": 22,
"keyword": "Then ",
"result": {
"status": "undefined"
}
},
{
"name": "I should make completed assessment",
"line": 23,
"keyword": "Then ",
"result": {
"status": "undefined"
}
},
{
"name": "I should add \"Asthma Initiative\" assessment again",
"line": 24,
"keyword": "Then ",
"result": {
"status": "undefined"
}
},
{
"keyword": "After ",
"hidden": true,
"result": {
"status": "passed",
"duration": 84556816
},
"match": {
"location": "/data/build/branches/Registry-Trunk-UI/cucumber_js/tests-ui-js/src/test/features/step_definitions/support/world.js:11"
}
}
]
}
from bootstraped-multi-test-results-report-plugin.
Hi @BogdanLivadariu,
Ops, It look's like I cut too much. :(
I am using grunt-cucmberjs plugin which producing json file.
Attaching full source in txt file.
from bootstraped-multi-test-results-report-plugin.
@Vovanchik by the looks of it this report does not has undefined steps or tags
can you attach a file that has undefined steps & tagged reports ?
from bootstraped-multi-test-results-report-plugin.
Ops... Hard working day.
Adding file with undefined steps.
What do you mean under tagged reports? I have only tagged scenarios.
In my file it's shown as:
"tags": [ { "name": "@PROD", "line": 3 }
from bootstraped-multi-test-results-report-plugin.
Hi,
Any updates on my issue?
from bootstraped-multi-test-results-report-plugin.
@Vovanchik I'm on vacation :) will try to fill in with updates next week, when I get back :D
from bootstraped-multi-test-results-report-plugin.
Have a nice vacation. Waiting for your results.
from bootstraped-multi-test-results-report-plugin.
For steps it look's very good.
If some of the steps are in undefined state can we marked Scenario as PASSED instead of FAILED as it is right now.
What I see there not status field for scenarios, so plugin decided which status to set.
What do you think?
from bootstraped-multi-test-results-report-plugin.
@Vovanchik I guess I can add an option in the plugin config, that you can tick
so that undefined steps are ignored, and
in a scenario if you have undefined steps, scenario will be marked as passed
what do you think ?
from bootstraped-multi-test-results-report-plugin.
please create a new issue to cover this case, as it is an enhancement :D
from bootstraped-multi-test-results-report-plugin.
Cool thank you ;)
from bootstraped-multi-test-results-report-plugin.
New issue #49 created.
from bootstraped-multi-test-results-report-plugin.
Related Issues (20)
- Plugin is vulnerable to CVE-2021-4428 (log4j / log4shell) HOT 5
- Please update to latest log4j version (2.17.1) and consider removing it completely
- Host plugin in jenkinsci organization? HOT 6
- Release plugin with Java 11 support HOT 5
- Report not showing Cucumber table information HOT 9
- maven artifacts are not usable HOT 2
- Pipeline integration HOT 5
- Generating a report out of an XML that has 0 test results throws a Null Pointer exception HOT 8
- In case you have 0 tests ran, provide a placeholder page
- add support to manage overview table data
- Cucumber duration isn't showing up HOT 2
- Columns do not align with results HOT 1
- add support for squish test results HOT 1
- Broken link at https://wiki.jenkins-ci.org/
- add support to refer on locally configured bootstrap HOT 1
- Variables are ignored when passed in the 'XML Reports Path' field HOT 7
- Skipped Tests Mark Build as Unstable HOT 1
- Option to keep test report using runtime order HOT 4
- Using the plugin multiple times for different steps in pipeline gives 403
- Please consider adding Java SE 11 support to avoid ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory HOT 5
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 bootstraped-multi-test-results-report-plugin.