Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
patel-5788 opened this issue Feb 3, 2021 · 1 comment

Comments

@patel-5788
Copy link

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

@damianszczepanik
Copy link
Owner

Attach JSON file for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants