[ 
https://issues.apache.org/jira/browse/SUREFIRE-1553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tibor Digana closed SUREFIRE-1553.
----------------------------------
    Resolution: Not A Bug

Sorry for the previous comment. My bad!
The test works now.
All i did was an upgrade of {{spock-core}} to the version *2.0-M2-groovy-2.5*.
And now, the report is alright...
The good message is that I want to include your project to our integration 
tests and the documentation.

{code:xml}
  <testcase name="Multiply: #a * #b = #expectedResult(Object,Object,Object)" 
classname="com.skrser.surefire.test.CalculatorSpockTest" time="0.166">
    <system-out><![CDATA[result = 12
]]></system-out>
  </testcase>
  <testcase name="Multiply: #a * #b = #expectedResult(Object,Object,Object)" 
classname="com.skrser.surefire.test.CalculatorSpockTest" time="0.001">
    <system-out><![CDATA[result = 20
]]></system-out>
  </testcase>
{code}


> @Unroll forces usage of JUnit Vintage
> -------------------------------------
>
>                 Key: SUREFIRE-1553
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1553
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: JUnit 5.x support, Maven Surefire Plugin
>    Affects Versions: 2.22.0, 3.0.0-M4
>            Reporter: Sergey Skryabin
>            Assignee: Tibor Digana
>            Priority: Major
>
> If run
> {code}mvn clean test{code}
> JUnit4 tests and Spock tests (which not contain @Unroll) are executed 
> normally. Once Spock test with @Unroll annotation appears, then Surefire 
> execute
> {code}[INFO] Running JUnit Vintage{code}
>  and all other JUnit4 tests and Spock tests are wrapped with this runner. 
> In surefire-reports I see _TEST-<all tests executed before meeting 
> @Unroll>.xml_ s and than
> _TEST-JUnit Vintage.xml_
> Though it could be done by intention, behaviour is different from 2.21.0 (no 
> wrapping with Vintage). Also it much more visible to have separate reports 
> per test class (both in console output and surefire-reports folder).
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to