'Spring Contract ignore test with message

I have the following code:

Contract.make {
            ignoreTestBaseOnACondition() ? ignored() : ""
            description "e"
               request {
                method 'POST'
                url '/api/login'
                headers {
                    contentType("application/json")
                }
                body($(execute("aMethod()")))
            }
            response {
                status 200
                headers {
                    contentType("application/json")
                }
            }
        }

and it generates:

@Test
@Ignore
public void someName(){}

Sonar complains asking for a description on the ignore method, something like:

@Test
**@Ignore("See Ticket #1234")**
public void testDoTheThing() {}

Is there any way to achieve this with spring contract?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source