AOEpeople / geb-spock-reports

Integrates Geb screenshots into the spock-reports library
Apache License 2.0
36 stars 11 forks source link

Add source code to spec-template. #4

Closed tenwit closed 6 years ago

tenwit commented 6 years ago

The existing behavior is to display "When: ----" or similar for the block text. This remains when com.athaydes.spockframework.report.showCodeBlocks is false. When it is true, the code associated with the block is pasted.

CSS is not added yet. A further improvement would be to remove the blocks entirely when showCodeBlocks is false.

tilmanginzel commented 6 years ago

Hi @tenwit, thanks for your pull request! I'll test and merge it as soon as I find the time. :+1:

tilmanginzel commented 6 years ago

@tenwit I just published version v0.1.4 with your changes. In a future release I plan to make a full redesign of the report, where I will also add basic code highlighting for the source code blocks.