typhoon-hil / allure-docx

docx report generation based on allure-generated json files
MIT License
30 stars 14 forks source link

@Epic annotations in .docx report #43

Open MM-KR opened 1 year ago

MM-KR commented 1 year ago

Is it possible to display the @Epic, @Feature, @Story and @Description descriptions in the .docx file? This is the code in the Jenkins Pipeline: post { always { withEnv(["XXXX+XXXX=.tools"]){ bat "allure-docx.exe --detail-level compact --logo XXX_logo.png --title \""+ doctitle +"\" target/allure-results target/" + filename archiveArtifacts 'target/' + projecttitle + '*' } } } } } post { always { script { allure([ includeProperties: false, jdk: 'JDK11', reportBuildPolicy: 'ALWAYS', results: [[path: 'target/allure-results']] ]) } }

bjarnesc commented 1 year ago

As far as I could tell without trying e.g. the @Epic annotation should be categorized as a label. In theory adding it to the configuration ini like:

[labels]
epic = fbpsu

should do the trick. Would love feedback if you try it out. Sorry for the late answer.