spekframework / spek

A specification framework for Kotlin
Other
2.23k stars 180 forks source link

Add Allure or other reporting #347

Open piotrgwiazda opened 6 years ago

piotrgwiazda commented 6 years ago

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?

michaeloa commented 6 years ago

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.

raniejade commented 6 years ago

We will look into it, thanks!

piotrgwiazda commented 6 years ago

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.

michaeloa commented 6 years ago

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.

piotrgwiazda commented 6 years ago

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