Plugin is published here - https://plugins.jetbrains.com/plugin/13322-allure-to-test-rail-exporter/
JDK 8+
Gradle 5(optional, wrapper is included in project)
- Clone repo
- Import project into Intellij Idea as a Gradle project - everything will be done automatically
- Do code changes
- Change plugin version in build.gradle
- Run
buildPlugin
gradle task - Install new plugin from
build/distributions/AllureToTestRailExporter-x.x.zip
- Have fun
Plugin does update existing test case in TestRail - no need to delete it manually and export again!
Junit 5
Allure
Set up valid credentials in plugin settings under Tools - TestRail exporter plugin
Check that connection is successful
Open file with tests
Select desired test by putting a cursor on a test name - this is IMPORTANT
Push Alt - Insert combination
Select "Export to TestRail" menu item
TmsLink with testCase ID should be added
If you do not need test steps - enable "Export only test name" checkbox in plugin configuration settings
@DisplayName annotation is mandatory - test case title is created from it
@Feature annotation on a test or class level is mandatory - TestRail section is linked to it:
- If @Feature is present on a class and methods levels, method annotation is taken
- If @Feature is not present on a class level, method annotation is taken
- If conditions above are false - class annotation is taken
@Link is not mandatory, but strongly advised
If you want to see nice test case - write nice @Step annotations