Open dibog opened 5 years ago
IMHO generating more descriptive reports is the way to go. Starting 2.1.0
as part of Kotlin Native support - Spek will provide its own gradle plugin which will have proper reporting (similar to rspec or jasmine).
Please don't forget to add it to maven, too, as not all the world is using gradle or is thinking about to migrate to gradle.
I added a pull request for this issue: https://github.com/spekframework/spek/pull/641
Please don't forget to add it to maven, too, as not all the world is using gradle or is thinking about to migrate to gradle.
The maven plugin for kotlin is getting left out in terms of features compared to the gradle plugin. Correct me if I'm wrong, I can't see any docs to setup mpp projects using maven.
mpp as in multi platform projects? Tbh. I'm using kotlin for server centered development. So I'm interested in using Spek there and we are using maven for building our projects. The current maven support of Spek is fine for me, at least with the support mentioned in this issue. So, please don't drop the maven plugin you have.
👋 Any news on support for this feature?
If a test case fails the reports are not very descriptive.
E.g. take:
which will report those failures as
The message would be better if we can provide the path name of the test. Unfortunately this path name can't be accessed currently. With the following, very ugly extension function:
and the assertion in the original code changed as the following:
we get a better report:
This is IMHO more readable.
So please either let the report generate a better description or add the fullPathName() method to the TestBody.