Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allure does not work together with reckon plugin #85

Closed
1 task done
finsterwalder opened this issue Jan 13, 2022 · 2 comments
Closed
1 task done

Allure does not work together with reckon plugin #85

finsterwalder opened this issue Jan 13, 2022 · 2 comments

Comments

@finsterwalder
Copy link
Contributor

I tried to use the AllureReport Plugin together with the Reckon Plugin from https://github.com/ajoberstar/reckon
When I combine these in a project, the allureReport generation goes into a loop and produces a StackOverflowError.

I'm submitting a ...

  • bug report

What is the current behavior?

Build breaks with java.lang.StackOverflowError

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

The attached project shows the problem when you execute
"gradlew clean test allureReport"

My debugging hinted towards this code:
In AllureAdapterExtension.kt
fun generateExecutorInfo
executorInfo is filled with a mapping "projectVersion" to project.version
When using the Reckon Gradle Plugin this project.version is a special Object from this plugin. So maybe that causes the confusion.

What is the expected behavior?

Build works and generates a report

Please tell us about your environment:

It's all in the attached project
allure.zip

@finsterwalder
Copy link
Contributor Author

Quite likely the problem would be solved by simply adding a call to toString() to ensure the project version is a string.

Changing line 173 in AllureAdapterExtension from
"projectVersion" to project.version
to
"projectVersion" to project.version.toString()

@finsterwalder
Copy link
Contributor Author

Would be fixed with the MR: #86

@baev baev closed this as completed in bf4c99e Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant