
|
If you were logged in you would be able to see more operations.
|
|
|
|
Listeners defined in a suite XML file (listeners/listener tag) are ignored on execution (invocation via command line).
There were some changes to the TestNG class regarding listeners in 5.14.6.
I tried to analyze the problem for a bit and here's what I could figure out:
It seems that the 'initializeConfiguration' method is only invoked once before the xml suites (m_suites field) are initialized.
The m_suites will be initialized later via 'initializeSuitesAndJarFiles'.
The listeners are created in the 'initializeConfiguration' method, so it should be invoked after init of the xml suites?
|
|
Description
|
Listeners defined in a suite XML file (listeners/listener tag) are ignored on execution (invocation via command line).
There were some changes to the TestNG class regarding listeners in 5.14.6.
I tried to analyze the problem for a bit and here's what I could figure out:
It seems that the 'initializeConfiguration' method is only invoked once before the xml suites (m_suites field) are initialized.
The m_suites will be initialized later via 'initializeSuitesAndJarFiles'.
The listeners are created in the 'initializeConfiguration' method, so it should be invoked after init of the xml suites? |
Show » |
|
I just fixed this, added a test and pushed a new version (5.14.9), which should be available in Maven central soon (update: maybe not, there is a problem with the upload site right now).
Can you check the fix and report back? You can do this either by downloading 5.14.9 from testng.org or by pulling from github.
Thanks!