[junit] Please add some alternative method of linking executed autotests to already created tests in Testomat
Hello!
I tried to set up JUnit reporter and import test results to the Testomat. It's my test example
@Test
void test() {
System.out.println("tid://@Tone-of-our-test-ids");
dummyActionsBlaBlaBla();
}
and then I try to run it
% mvn clean test
// output - doesn't matter
% grep "system-out" target/surefire-reports/*.xml
<system-out><![CDATA[tid://@Tone-of-our-test-ids
]]></system-out>
% TESTOMATIO=our-project-reporting-apikey npx report-xml 'target/surefire-reports/**.xml' --lang=Java
In ths case it works fine, as you see,
% mvn clean test -Dsurefire.rerunFailingTestsCount=1
% grep "system-out" target/surefire-reports/*.xml
%
That's all.
Thanks in advance, Olek
Hi, we are working to introduce annotations for this. No ETA but this is in our plans.
If you have alternative ideas how to make it in a simpler way, we can also think on approach that can work for you.
Please use our native Java reporter https://github.com/testomatio/java-check-tests https://github.com/testomatio/java-reporter