maven - Allure TeamCity plugin showing empty report -
teamcity running on machine "А". agent running on machine "b". on same machine ("b") maven triggering selenium web tests. there allure reports "mvn clean test site jetty:run" working fine.
i've installed allure teamcity plugin. added path allure reports. allure report empty each time open after test finished.
thanks & support in advance!
**allure screenshot:**automated-testing.info//uploads/default/1693/2d09b275384e6800.png
teamcity screenshot: http://automated-testing.info//uploads/default/1691/37400f7a5cbe8d2f.png
teamcity screenshot: http://automated-testing.info//uploads/default/1692/eb9e8664d8222407.png
<properties> <project.build.sourceencoding>utf-8</project.build.sourceencoding> <allure.version>1.4.14</allure.version> <aspectj.version>1.7.4</aspectj.version> </properties> <dependencies> <dependency> <groupid>junit</groupid> <artifactid>junit</artifactid> <version>4.12</version> </dependency> <dependency> <groupid>org.seleniumhq.selenium</groupid> <artifactid>selenium-java</artifactid> <version>2.45.0</version> </dependency> <dependency> <groupid>org.seleniumhq.selenium</groupid> <artifactid>selenium-server</artifactid> <version>2.45.0</version> </dependency> <dependency> <groupid>ru.yandex.qatools.allure</groupid> <artifactid>allure-junit-adaptor</artifactid> <version>${allure.version}</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-surefire-plugin</artifactid> <version>2.18</version> <configuration> <testfailureignore>true</testfailureignore> <argline> -javaagent:${settings.localrepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar </argline> <properties> <property> <name>listener</name> <value>ru.yandex.qatools.allure.junit.allurerunlistener</value> </property> </properties> </configuration> <dependencies> <dependency> <groupid>org.aspectj</groupid> <artifactid>aspectjweaver</artifactid> <version>${aspectj.version}</version> </dependency> </dependencies> </plugin> <plugin> <groupid>org.mortbay.jetty</groupid> <artifactid>jetty-maven-plugin</artifactid> <configuration> <webappsourcedirectory>${project.build.directory}/site/allure-maven-plugin</webappsourcedirectory> </configuration> </plugin> </plugins> </build> <reporting> <excludedefaults>true</excludedefaults> <plugins> <plugin> <groupid>ru.yandex.qatools.allure</groupid> <artifactid>allure-maven-plugin</artifactid> <version>2.2</version> <configuration> <allureresultsdirectory>${project.build.directory}/allure-results</allureresultsdirectory> </configuration> </plugin> </plugins>
[13:13:31][info] ------------------------------------------------------------------------ [13:13:31][info] build success [13:13:31][info] ------------------------------------------------------------------------ [13:13:31][info] total time: 2:10.375s [13:13:31][info] finished at: thu jun 04 15:13:30 eest 2015 [13:13:31][info] final memory: 38m/364m [13:13:31][info] ------------------------------------------------------------------------ [13:13:31]process exited code 0 [13:13:31]publishing artifacts [13:13:31]collecting files publish: [d:\buildagent\temp\buildtmp\.tc-maven-bi\maven-build-info.xml.gz => .teamcity] [13:13:31]publishing using [artifactscachepublisher] [13:13:32]publishing using [webpublisher] [13:13:32]waiting 2 service processes complete [13:13:32]allure report generation (8s) [13:13:32]analyse results pattern [d:\buildagent\work\792b367268134f82\automation\target\allure-results] [13:13:32]analyse results directories [] [13:13:32]prepare allure report directory [d:\buildagent\temp\agenttmp\allure] [13:13:32]prepare report generator version: 1.4.14 [13:13:32]process tests results directory [d:\buildagent\temp\agenttmp\allure] [13:13:40]unpack report face directory [d:\buildagent\temp\agenttmp\allure] [13:13:41]publishing artifacts (2s) [13:13:42]surefire report watcher [13:13:42]1 report found paths: [13:13:42]d:\buildagent\work\792b367268134f82\automation\target\surefire-reports\test-*.xml [13:13:42]successfully parsed [13:13:44]publishing internal artifacts [13:13:45]sending using artifactscachepublisher [13:13:45]sending using webpublisher [13:13:46]build finished
[13:13:32]analyse results pattern [d:\buildagent\work\792b367268134f82\automation\target\allure-results [13:13:32]analyse results directories []
your results pattern incorrect that's why allure can't find directories xml files generated during test run. please try **/allure-results
specified default.
Comments
Post a Comment