I run ui-automated tests (java+maven+junit4) on TeamCity. And there are some tests which are ignored for some reasons. So I'm trying to pass these reasons to teamcity results. How it looks on teamcity
Tests are ignored via using Assume.assumeFalse - e.g.
Assume.assumeFalse("some message which I'd like to see on teamcity", false);
And then in the end there is special block for skipped tests
protected void skipped(AssumptionViolatedException e, Description description) {
logger.info("##teamcity[testMetadata name='Reason' value='" + e.getMessage() +"']");
}
Earlier I've tried use just logger.info with simple text, but it seems nothing is written to the log for skipped tests. So I've tried the code above - pass message as metadata - it's feature available in the latest version of teamcity(More info there), but it still didn't help.
Maybe anyone has some ideas how can I implement that? Or is it even possible?