{{ message }}
Added multiple paths/patterns support to generate, open, and other commands that work with Allure results#627
Merged
Merged
Conversation
generate, open, and other commands that work with Allure results
generate, open, and other commands that work with Allure resultsgenerate, open, and other commands that work with Allure results
ed74580 to
56865d0
Compare
e7654a2 to
d47583e
Compare
2 tasks
baev
approved these changes
May 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
This PR updates the CLI commands that read Allure results so they can accept multiple
resultsDirinputs, including glob patterns, instead of forcing users to merge result files in a single directory.Why
This is mostly relevant for monorepos, where each module typically writes its own isolated
allure-resultsdirectory instead of producing one shared output.This feature is also important for
allure-gradleandallure-mavento support multi-project builds.Without this support, users often have to manually merge or copy result directories before running Allure commands. That extra copying is unnecessary and adds friction to CI scripts and local workflows.
Some commands (
generate,open,quality-gate) already supported passing a single glob pattern asresultsDir. However, this made the experience of passing multiple directories awkward. Because these commands expected only oneresultsDir, users had to wrap glob patterns in quotes to prevent shell expansion. If the glob was not quoted, the shell could expand it into multiple paths, causing Allure to throw an error.What Changed
resultsDiras a rest argument instead of a single positional string.findAllureResultDirectories.generate,open, andquality-gateis preserved: when noresultsDiris provided, commands still search./**/allure-results. The PR extends this behavior to other commands that work with result files.open/servekeep the existing behavior of serving an already generated report when a single or default report directory is provided and contains a generated report. Otherwise, they fall back to generating a report from the matched result directories.Affected Commands
generateopen/serveallure2awesomeclassiccsvdashboardhistoryknown-issuelogquality-gateslacktestplanwatchExamples
Examples are provided given this repo's layout.
npx allure open ./packages/*/out/allure-resultsIn a shell with globbing support, this is equivalent to:
npx allure awesome "./packages/*/out/allure-results"This is equivalent to the previous example, but instead of the shell, the
globmodule performs the expansion according to its syntax and rules (which may differ from the shell's). Previously, onlygenerate,open, andquality-gatesupported this syntax.Extra changes
allure openandallure servenow require explicit input to generate instead of silently trying to generate from the output directory.Closes #560