Я создал проект Maven Cucumber. Я использую плагин maven cucumber junit report, используя
mvn test -Dcucumber.options="--plugin json:${jsonfilename} --plugin junit:${xmlfilename}"
, это дает вывод в следующем формате:
<testsuite failures="n" name="cucumber.runtime.formatter.JUnitFormatter skipped="n" tests="n" time="xxxx.xxxxxx" >
<testcase classname="<feature>", name="<scenario>" time=<time>
</testcase>
<testcase>
</testcase>
</testsuite>
однако мне нужно, чтобы вывод был в следующем формате - который формат отчета junit xml.
<testsuites>
<testsuite name="<feature_ref>" tests="n" failures="n" skipped="n" errors="n" time="nn.nnn">
<testcase classname="<scenario_ref>" name="<scenario>" time="<time>" >
</testcase>
<testcase>
</testcase>
</testsuite>
<testsuite>
<testcase>
</testcase>
<testcase
</testcase>
</testsuite>
</testsuites>
feature_ref и scene_ref содержат объект / сценарий с пробелами, замененными подчеркиванием.
Существует ли простой способ сделать это, например, с помощью опция конфигурации плагина?
Не хочу sh создавать множество участников тестов и объединять итоговые отчеты.
спасибо