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

Aggregated report generation fails in case of module without tests #7

Closed
1 of 3 tasks
baev opened this issue Jun 19, 2017 · 4 comments
Closed
1 of 3 tasks

Aggregated report generation fails in case of module without tests #7

baev opened this issue Jun 19, 2017 · 4 comments
Labels
type:bug Something isn't working

Comments

@baev
Copy link
Member

baev commented Jun 19, 2017

I'm submitting a ...

  • bug report
  • feature request
  • support request => Please do not submit support request here, see note at the top of this template.

What is the current behavior?

I am trying to generate aggregated report for multi-module project using the following task:

task allureAggregatedReport(type: AllureReport) {
    resultsDirs = subprojects.allure.resultsDir
}

but one of the modules currently has no tests and report generation fails:

> Task :allureAggregatedReport
Could not parse arguments: invalid Default parameter: directory /Users/charlie/projects/allure2/plugins/custom-logo-plugin/build/allure-results should exists
Generate the report
Usage: generate [options] The directories with allure results
  Options:
    -c, --clean
      Clean Allure report directory before generating a new one.
      Default: false
    --profile
      Allure commandline configuration profile.
    -o, --report-dir, --output
      The directory to generate Allure report into.
      Default: allure-report

What is the expected behavior?

Report generated successfully.

Please tell us about your environment:

Allure version 2.1.1
Generate report using allure-gradle@2.1
@baev baev added the type:bug Something isn't working label Jun 19, 2017
@Ostryak
Copy link

Ostryak commented May 22, 2019

Possible workaround:

task allureAggregatedReport(type: AllureReport)

//before task execution choose only existed folders
allureAggregatedReport.doFirst {
    resultsDirs = []
    subprojects.allure.resultsDir.each {
        if (file(it).exists){
             resultsDirs += it
        }
    }
}

@grpratap69
Copy link

task allureAggregatedReport(type: AllureReport) {
    resultsDirs = subprojects.allure.resultsDir
}

Where exactly are you passing this code.....under hooks in config file or somewhere else?... malso trying to get aggregated results

@vlsi
Copy link
Contributor

vlsi commented Apr 27, 2021

I believe this is fixed with #61

Please feel free to try it and provide feedback.

@vlsi
Copy link
Contributor

vlsi commented Sep 14, 2022

Resolved in #61

@vlsi vlsi closed this as completed Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants