maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krishnan Mahadevan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SUREFIRE-1450) TestNG Listener aren't working from Property Tag in POM.xml With JDK9
Date Tue, 02 Jan 2018 05:12:00 GMT

    [ https://issues.apache.org/jira/browse/SUREFIRE-1450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16307699#comment-16307699
] 

Krishnan Mahadevan commented on SUREFIRE-1450:
----------------------------------------------

[~hammadhost] - I will not be able to get to this atleast until a couple of days, because
I am tied up with stuff at work. 

Also what happens when pass the list of listeners to TestNG via the command line ? In your
example you are basically running a testng suite xml file, that already has references to
your listener. This is not the same as you providing your listeners via the properties in
your pom file and then having surefire plugin run it.

So when you are running TestNG from the command line, how about you using a suite xml file
that doesnt have the listeners tag in it, and you explicitly pass the listeners via the "-listeners"
command line argument ?

[~tibor17] - Would there be any logs that you can have extracted from the user's execution
that would help you identify as to what could possibly be going wrong ?

> TestNG Listener aren't working from Property Tag in POM.xml With JDK9
> ---------------------------------------------------------------------
>
>                 Key: SUREFIRE-1450
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1450
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Failsafe Plugin, Maven Surefire Plugin, TestNG support
>    Affects Versions: 2.20.1
>         Environment: macOS + Ubuntu, JDK9
>            Reporter: Hammad
>            Assignee: Tibor Digana
>              Labels: newbie
>
> TestNG Listener are not working when using:
> Maven = Apache Maven 3.5.2
> JDK9
> Here is relevant repo: https://github.com/HammadHost/poc_testng_surefire
> I executed it with jdk8 in same environment listener did work, but they aren't working
with JDK9
> FYI: https://stackoverflow.com/questions/47560412/maven-surefire-is-not-respecting-testng-listeners-in-property-tag



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message