spek icon indicating copy to clipboard operation
spek copied to clipboard

Add Allure or other reporting

Open piotrgwiazda opened this issue 8 years ago • 5 comments

I'd like to use Spek for BDD style acceptance tests. I can't find any reporting solution that will provide complete and good looking reports. Allure is a solution I use with Spock. How about using it with Spek?

piotrgwiazda avatar Dec 21 '17 18:12 piotrgwiazda

Currently looking at setting up a test framework with Spek myself, and also glanced at Allure. Didn't seem to be any problem setting it up to generate reports on the spek sample project. Doesn't generate nested reports by default (only the "it"), but presumably there is a way to wrangle it to do that, if Spock does it.

michaeloa avatar Jan 12 '18 17:01 michaeloa

We will look into it, thanks!

raniejade avatar Jan 13 '18 02:01 raniejade

In Spock it was easy to implement a pluggable test listener that handles Allure API. Not sure if there is any similar concept in Spek.

piotrgwiazda avatar Jan 13 '18 13:01 piotrgwiazda

The Spek test runner is a specialization of the jUnit5 TestEngine if I understand correctly, so I can't imagine it should be that much harder to implement than for Spock, assuming one knows where to look. Assuming it's not possible to get this working using the default output.

michaeloa avatar Jan 14 '18 12:01 michaeloa

There are some additional deatures like issue links and grouping specs into features.

piotrgwiazda avatar Jan 14 '18 13:01 piotrgwiazda