XML : WARNING Results directory for module allure-testng not found

Allure can not use absolute path to results file since version 2.2 for allure-maven-plugin.

pom.xml is located under path-to-project/module1/

i generate report using command:

  mvn -DresultsPattern=path-to-project/module1/build/module1/allure-results -DoutputDirectory=path-to-project/module1/build/reports/allure -f path-to-project/module1/pom-report.xml -s path-to-project/module1/settings-local.xml site    

pom.xml:

  <?xml version="1.0" encoding="UTF-8"?>  <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">  <modelVersion>4.0.0</modelVersion>  <groupId>ru.yandex.qatools.allure</groupId>  <artifactId>allure-testng</artifactId>  <version>1.0-SNAPSHOT</version>  <reporting>      <excludeDefaults>true</excludeDefaults>      <plugins>          <plugin>              <groupId>ru.yandex.qatools.allure</groupId>              <artifactId>allure-maven-plugin</artifactId>              <version>2.5</version>              <configuration>                  <properties>                      <allure.issues.tracker.pattern>https://jira.nyt.net/browse/%s</allure.issues.tracker.pattern>                  </properties>                  <resultsDirectory>allure-results</resultsDirectory>                  <reportDirectory>${outputDirectory}</reportDirectory>                  <reportVersion>1.5.0-RC1</reportVersion>                  <failReportIfEmpty>false</failReportIfEmpty>              </configuration>          </plugin>      </plugins>  </reporting>    

Output:

  [INFO] Scanning for projects...  [INFO]                                                                           [INFO] ------------------------------------------------------------------------  [INFO] Building allure-testng 1.0-SNAPSHOT  [INFO] ------------------------------------------------------------------------  [INFO]   [INFO] --- maven-site-plugin:3.3:site (default-site) @ allure-testng ---  [INFO] configuring report plugin ru.yandex.qatools.allure:allure-maven-plugin:2.5  [WARNING] No project URL defined - decoration links will not be relativized!  [INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.  [INFO] Skipped "Allure" report, file "allure-maven-plugin.html" already exists for the English version.  [INFO] Skipped "Allure" report, file "allure-maven-plugin.html" already exists for the English version.  [INFO] Generating "Allure" report    --- allure-maven-plugin:2.5  [INFO] Generate Allure report (aggregate) with version RELEASE  [INFO] Generate Allure report to /Users/smoke/git/core/modules/functional-test/build/reports/allure  [ERROR] Input directory should be not absolute for aggregate goal.  [WARNING] Allure report was skipped because there is no results directories found.  [INFO] ------------------------------------------------------------------------  [INFO] BUILD SUCCESS  [INFO] ------------------------------------------------------------------------  [INFO] Total time: 4.165 s  [INFO] Finished at: 2015-11-24T17:41:56-05:00  [INFO] Final Memory: 18M/229M  [INFO] ------------------------------------------------------------------------    

if i try relative path it says

  [WARNING] Results directory for module allure-testng not found.    

Code: https://github.com/allure-framework/allure-maven-plugin/blob/master/src/main/java/ru/yandex/qatools/allure/report/AlureAggregateMojo.java getInputDirectories method.

Can you do not restrict absolute path as it was in 2.2 version?

No comments:

Post a Comment