-
Notifications
You must be signed in to change notification settings - Fork 37
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
In Allure 2.9.3 the ability to specify allure-results folder (resultsDir) has disappeared. #72
Comments
Why do you need it? |
Because it used to be in earlier versions - we used it to set up a custom folder for the results of the run. |
The thing is there might be mulitple tasks (e.g. |
For instance, https://docs.gradle.org/current/userguide/more_about_tasks.html#sec:task_input_output_parallelism
|
@vlsi can we provide a possibility to override output per task? |
I would like to see an end-to-end use-case |
As i noticed, results appear in allure-results folder in build folder by default. So, it's the case of "single result folder", isn't it? Or without setting a resultsDir variable, results can appear in different folders?
|
The folder is not documented, so it can be changed. |
In this case - @rickflar if you need to use a working plugin with task customization, I mean - override default report outputs, disabling SPI OFF (), task aggregation - just not use the latest versions for Allure. Unfotunantliy you lose support for gradle 7 - because the last plugin changes/fixes not working in multiple places, not support manual customizations. Currently, all work as expected with old versions of allure gradle plugin 2.8.1, gradle 6.9.1:
@vlsi in my case (and many allure users) - we did not use autoconfiguration {} closure at all - we use allure extensions just to have proper API binding from gradle to allure command-line. Like this:
|
@baev maybe you had the same case as mine in the previous comment? Can you help and advise us here? ... how we can create a correct working example with the latest gradle API + not-broken plugin. theoretically, I can just make direct calls to bat files... |
Does there are any solutions? We have this problem, I running test case in different environments but I wanna keep different results in different folder. such as if I specify |
Has anyone found a solution to this problem? We're facing the same issue here... |
@Leo-Lem , would you please clarify what is your issue exactly? |
Hey @vlsi, we are updating a mobile test automation framework with appium, gradle, testng, allure etc. Due to parallel test execution, we'd like to have separate "build" directories for each gradle build to avoid conflicts (in the format of 'out-timestamp' under a results directory). This works well enough (by specifying the project's buildDir in the build.gradle file), only the allure-results are always generated in root/build/allure-results. We'd appreciate it if a custom allure results directory could be configured... |
In my case allure just fails to produce raw results with error: |
Any update on this? thanks! |
Ended up using somewat hacky solution. It works with gradle 8.5, java 21, allure 2.25.0
This task will copy content of bakup properties file to actual file and replace results directory value with absolute path. If you don't care about other properties and need to set only result path, you can omit bakup file and simplify tasks to:
|
thanks a lot, hacky but does the trick!! kudos for coming up with that :D |
I'm submitting a ...
What is the current behavior?
Right now, i don't have an ability to specify custom allure-results folder, using resultsDir variable.
What is the expected behavior?
Have an ability to specify custom allure-results folder, like it was in allure-gradle 2.8.1.
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: