Comments (7)
The most common configuration issues are:
- Missing maven-surefire-plugin configuration like the following and respective AspectJ configuration
- Missing Allure TestNG dependency: https://github.com/allure-examples/allure-testng-example/blob/master/pom.xml#L52-L68 This one adds AllureAdapter class which is automatically loaded by TestNG via SPI. Please check that test listeners are not disabled in your TestNG config.
from allure-maven.
Thanks for quick reply,
I have re-checked my pom.xml, and seems that it has all mentioned dependencies. Please take a look:
<properties>
<allure.version>1.4.13</allure.version>
<aspectj.version>1.8.5</aspectj.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>testng.xml</suiteXmlFile>
</suiteXmlFiles>
<testFailureIgnore>true</testFailureIgnore>
<argLine>
-javaagent:${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar
</argLine>
</configuration>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectj.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<reporting>
<excludeDefaults>true</excludeDefaults>
<plugins>
<plugin>
<groupId>ru.yandex.qatools.allure</groupId>
<artifactId>allure-maven-plugin</artifactId>
<version>2.2</version>
</plugin>
</plugins>
</reporting>
<dependencies>
<dependency>
<groupId>ru.yandex.qatools.allure</groupId>
<artifactId>allure-testng-adaptor</artifactId>
<version>${allure.version}</version>
<exclusions>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.1.1</version>
<scope>test</scope>
</dependency>
</dependencies>
Looks like I have add everything, but I will wait for your advice. Thanks one more time.
from allure-maven.
@AruslanK seems like your configuration is correct. Does allure-testng-example
work for you? Could you provide simple project to reproduce the problem?
from allure-maven.
Hi Dmitry,
--"Does allure-testng-example work for you?"
This example I haven't try yet, just used it as FAQ, but I think I will do
it on weekends.
--"Could you provide simple project to reproduce the problem?"
Please find attached archive below. I think it will be rather simple.
On Fri, May 22, 2015 at 1:12 PM, Dmitry Baev [email protected]
wrote:
@AruslanK https://github.com/AruslanK seems like your configuration is
correct. Does allure-testng-example work for you? Could you provide
simple project to reproduce the problem?—
Reply to this email directly or view it on GitHub
#12 (comment)
.
Best regards,
Ruslan Kryvosheiev
GlobalLogic
Skype: shaman2804
from allure-maven.
Seems like attachment was not added. If so, kindly please clone my repo with porject from: https://github.com/AruslanK/test1.git
from allure-maven.
@AruslanK problem with your testNg version. Use testNg 6.8
or higher. Note: allure-testng-adaptor already depends on testng. The following configuration works for you:
<dependencies>
<dependency>
<groupId>ru.yandex.qatools.allure</groupId>
<artifactId>allure-testng-adaptor</artifactId>
<version>${allure.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
from allure-maven.
Yes, that's work.
Thanks.
from allure-maven.
Related Issues (20)
- mvn allure:report allure:serve does not preserve report directory HOT 3
- Proxy exceptions are ignored HOT 1
- Could not generate the report: HTTP 403 HOT 1
- trendline
- Release 2.11.0 not on Maven Central HOT 3
- Support links to previous build in trends
- Would be nice to have command line used by AllureCommandline.execute() being output into debug log when -X is passed to Maven on command line
- Reports works in Intellij and not in eclipse HOT 3
- Process and server are not killed on exit mvn allure:serve
- Intermittent report generation error HOT 1
- Space in report path on report goal
- Hi , I have a doubt due to which i am stuck long time on my project . I have upgraded my project to jdk17 and after that allure has stopped working HOT 1
- Downloading Allure Command Line failed if no external repositories allowed HOT 1
- Allure maven plugin does not work on JDK 17 HOT 5
- Report is not created when trying to work directly with json files
- When running the same test in different suites, the test does not merge in report HOT 2
- Missing API test execution data
- Add a mvn command to generate single file report
- Plugin is not processing standard maven options for disabling SSL-Certificate validations - download of allure binaries is not possible
- Is it possible to merge multiple allure results into one report
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from allure-maven.