GithubHelp home page GithubHelp logo

Comments (7)

vania-pooh avatar vania-pooh commented on July 17, 2024

The most common configuration issues are:

  1. Missing maven-surefire-plugin configuration like the following and respective AspectJ configuration
  2. 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.

AruslanK avatar AruslanK commented on July 17, 2024

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.

baev avatar baev commented on July 17, 2024

@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.

AruslanK avatar AruslanK commented on July 17, 2024

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.

AruslanK avatar AruslanK commented on July 17, 2024

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.

baev avatar baev commented on July 17, 2024

@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.

AruslanK avatar AruslanK commented on July 17, 2024

Yes, that's work.
Thanks.

from allure-maven.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.