cholick / idea-spock-enhancements

A plugin for IntelliJ IDEA that improves integration with the Spock specification framework
Other
30 stars 10 forks source link

Inspection for Data Driven specs without @Unroll #17

Closed stokito closed 10 years ago

stokito commented 10 years ago

Could you create inspection that will report about usage expect: ... where: specs that are not marked with @Unroll annotation?

I would be very thankful for you

stokito commented 10 years ago

This inspection should be disabled by default. In the Spock documentation said:

Why isn’t @Unroll the default?

One reason why @Unroll isn’t the default is that some execution environments (in particular IDEs) expect to be told the number of test methods in advance, and have certain problems if the actual number varies. Another reason is that @Unroll can drastically change the number of reported tests, which may not always be desirable.