damianszczepanik / cucumber-reporting

HTML reports for Cucumber
GNU Lesser General Public License v2.1
546 stars 402 forks source link

Cucumber reports does not show step details when we call other feature file #991

Open patel-5788 opened 3 years ago

patel-5788 commented 3 years ago

I am using cucumber reporting with karate dsl also using Jenkins plugin to generate reports.

i am using Jenkins to generate a cucumber html report. till now report was displaying all the steps feature and scenario.

recently I have refactored code to make it more reusable now my code structured ( based on called and caller ) is like this

workflow. feature 
Feature: using login
    Scenario: using login cycle
      # login to system
      *def loginResult = call(login.feature@login)
      # clear login details
      *def clearLoginDetails = call(home.feature@clear)
      # logout
      *def logout = call(login.feature@logout)

my called feature looks like
login.feature

Feature: using login

    @login
    Scenario: user login
       Given 'v1/login'
       When method get
        Then status 200

i am using JUnit 5 parallel runner based on tag

cucumber html jenkins pluns setup

stage("generate reports") {
                    sh "yum install git -y"
                    junit allowEmptyResults: true, testResults: '**/target/surefire-reports/TEST-*.xml', fingerprint: true, keepLongStdio: true
                    def author = sh script: "git show --name-only", returnStdout: true
                    cucumber buildStatus: 'STABLE',
                            fileIncludePattern: '**/target/surefire-reports/*.json',
                            trendsLimit: 100,
                            reportTitle: ' test report',
                            sortingMethod: 'ALPHABETICAL',
                            classifications: [
                                    [
                                            key  : 'Commit details',
                                            value: author
                                    ]
                            ]
                }

i dont see stps details in cucumebr html report. please refer attached screenhot[

Screenshot 2021-01-25 at 11 00 30 PM

](url)

damianszczepanik commented 3 years ago

Attach JSON file for details