java - Test reporting with Allure in JUnit 5 -
i using allure test reporting of junit 5 project. using both maven , gradle in same project (for teaching purposes).
regarding maven, pom.xml. works expected:
- i run tests
mvn test, json files generated allure stored on folderbuild\allure-results - i managed run launch html report using
mvn allure:serve
regarding gragle, build.gradle. have 2 problems here:
- i save json file on
build/allure-resultswhen running tests (gradle test) don't make it. json files end in default path,allure-results(in root of project).- anybody knows how can done?
- i launch html report gradle, don't know how.
- is there command equivalent
mvn allure:servein gradle?
- is there command equivalent
if want copy file or directory content build/allure-results folder via gradle, might want check following example: https://github.com/sskorol/allure2-testng-report/blob/c89c6ba5cb22d812c5deec012014cc9e31310173/build.gradle#l38
regarding second question, please check official plugin's page: https://github.com/allure-framework/allure-gradle
technically, need download allure commandline (required once) via:
gradlew allurereport then can open report in browser via:
gradlew allureserve
Comments
Post a Comment