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

Aggregate Allure Report to a Single Report (incl. history) #62

Open
phammer opened this issue Nov 8, 2024 · 3 comments
Open

Aggregate Allure Report to a Single Report (incl. history) #62

phammer opened this issue Nov 8, 2024 · 3 comments

Comments

@phammer
Copy link

phammer commented Nov 8, 2024

We have a multi-module Java projects, thus allure is executed in the sub-projects. Locally, I've done a quick prototype of a shell script bulling everything together and keeping a history.

However, would be beautiful and super useful to have that in your nice Github action properly done rather than this manual approach.

#!/bin/bash

# Create combined results directory
mkdir -p combined-allure-results

# Copy history from previous report (if it exists)
if [ -d "allure-report/history" ]; then
  cp -R allure-report/history combined-allure-results/
fi

# Copy results from all modules with prefixes
allure generate modules/app/allure-results --clean -o combined-allure-results --allure-results-prefix app_
allure generate modules/formatter/allure-results --clean -o combined-allure-results --allure-results-prefix formatter_
allure generate modules/utils/allure-results --clean -o combined-allure-results --allure-results-prefix utils_
allure generate modules/testUtils/allure-results --clean -o combined-allure-results --allure-results-prefix testUtils_

# Generate final report
allure generate combined-allure-results --clean -o allure-report

# Open the report
allure open allure-report

In its core, we have a Java/Spring project. But I don't think that matters. Also, I know there is a gradle allureAggegrateReport project, but that doesn't do the job and it would be Java/Grade specific. Sticking to shell makes sense.

@jamesquantum
Copy link

+1 this issue

@phammer phammer changed the title Aggregate Allure Report to a Singe Report (incl. history) Aggregate Allure Report to a Single Report (incl. history) Nov 21, 2024
@renatafaracobah
Copy link

+1

1 similar comment
@OleksandrOwl
Copy link

+1

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

4 participants