Xslt Pom.xml无法为报告结果创建输出目录
我浏览了很多帖子和博客,但无法通过maven生成Xslt Pom.xml无法为报告结果创建输出目录,xslt,webdriver,maven-3,testng,reportng,Xslt,Webdriver,Maven 3,Testng,Reportng,我浏览了很多帖子和博客,但无法通过maven生成reportng或testngxslt报告。最后我得到了辅导,但运气不好。我不明白我错过了什么。 以下是我尝试过的:它成功地在目标文件夹中生成了surefire报告,但没有为报告创建(生成报告)目录 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLoc
reportng
或testngxslt
报告。最后我得到了辅导,但运气不好。我不明白我错过了什么。
以下是我尝试过的:它成功地在目标文件夹中生成了surefire报告,但没有为报告创建(生成报告)目录
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.testng.xslt</groupId>
<artifactId>testng-xslt-plugin</artifactId>
<packaging>maven-plugin</packaging>
<name>TestNG XSLT Maven Plugin</name>
<version>1.2</version>
<prerequisites>
<maven>2.0.4</maven>
</prerequisites>
<developers>
<developer>
<id>cosminaru</id>
<name>Cosmin Marginean</name>
<email>cosminaru@gmail.com</email>
</developer>
</developers>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.14.1</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>C:/Users/paul/Desktop/reporty-ng-1.2/testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.reportyng</groupId>
<artifactId>reporty-ng</artifactId>
<version>1.2</version>
<configuration>
<surefireReportDirectory>C:/Users/paul/Desktop/reporty-ng-1.2/target/surefire-reports</surefireReportDirectory>
<!--Setting the output directory -->
<outputDir>C:/Users/paul/workspace/windowspc/target/site/testng-xslt-plugin</outputDir>
<!--Setting the testNgXslt.showRuntimeTotals flag -->
<showRuntimeTotals>true</showRuntimeTotals>
<!--Setting the testNgXslt.cssFile parameter. This should be relative
to the '${basedir}/target/site/testng-xslt' directory -->
<sortTestCaseLinks>true</sortTestCaseLinks>
<testDetailsFilter>FAIL,PASS,SKIP,CONF</testDetailsFilter>
</configuration>
</plugin>
</plugins>
</reporting>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.0.4</version>
</dependency>
<dependency>
<groupId>org.apache.maven.reporting</groupId>
<artifactId>maven-reporting-api</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven.reporting</groupId>
<artifactId>maven-reporting-impl</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>net.sf.saxon</groupId>
<artifactId>saxon</artifactId>
<version>8.7</version>
</dependency>
<!-- selenium and testng -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>2.34.0</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.34.0</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-support</artifactId>
<version>2.34.0</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-api</artifactId>
<version>2.34.0</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.3.1</version>
<scope>test</scope>
</dependency>
<!-- selenium and testng -->
</dependencies>
<pluginRepositories>
<pluginRepository>
<id>reporty-ng</id>
<url>https://github.com/cosminaru/reporty-ng/raw/master/dist/maven</url>
</pluginRepository>
</pluginRepositories>
</project>
4.0.0
org.testng.xslt
testngxslt插件
maven插件
TestNG XSLT Maven插件
1.2
2.0.4
科斯米纳鲁
柯斯敏·马吉宁
cosminaru@gmail.com
Apache软件许可证,版本2.0
http://www.apache.org/licenses/LICENSE-2.0.txt
回购
org.apache.maven.plugins
maven surefire插件
2.14.1
C:/Users/paul/Desktop/reporty-ng-1.2/testng.xml
org.reportyng
报告性ng
1.2
C:/Users/paul/Desktop/reporty-ng-1.2/target/surefire-reports
C:/Users/paul/workspace/windowspc/target/site/testng xslt插件
符合事实的
符合事实的
失败、通过、跳过、确认
org.apache.maven
maven插件api
2.0.4
org.apache.maven.reporting
maven报告api
2
org.apache.maven.reporting
maven报告程序
2
net.sf.saxon
撒克逊人
8.7
org.seleniumhq.selenium
硒服务器
2.34.0
org.seleniumhq.selenium
硒爪哇
2.34.0
org.seleniumhq.selenium
硒载体
2.34.0
org.seleniumhq.selenium
硒原料药
2.34.0
org.testng
testng
6.3.1
测验
报告性ng
https://github.com/cosminaru/reporty-ng/raw/master/dist/maven
看看:
对于maven surefire report plugin,配置应包括outputDirectory标记,例如:
<outputDirectory>${project.basedir}/test-output</outputDirectory>
<reportsDirectory>${project.basedir}/test-output</reportsDirectory>
${project.basedir}/test输出
或者在使用maven surefire插件时,设置reportsDirectory标记,例如:
<outputDirectory>${project.basedir}/test-output</outputDirectory>
<reportsDirectory>${project.basedir}/test-output</reportsDirectory>
${project.basedir}/test输出