Skip to content

Commit

Permalink
issue testng-team#1400: don't add duplicate reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
missedone committed Apr 1, 2017
1 parent 76c52be commit 1595ce2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Fixed: GITHUB-1365: Be able to override default XML parser (@ChristiKh & Julien
Fixed: GITHUB-1360: TestNG does not distinguish between methods of different priorities (Krishnan Mahadevan)
Fixed: GITHUB-1144: Add Class and Constructor as legal native dependency injection (Guillaume Juillot)
Fixed: GITHUB-1380: Circular dependencies may fail in parallel (Julien Herr)
Fixed: GITHUB-1400: TestNG, Multiple duplicate listener warnings on implementing multiple listener interfaces (@bipo1980 & Nick Tan)

6.11
2017/02/27
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/org/testng/TestNG.java
Original file line number Diff line number Diff line change
Expand Up @@ -1394,7 +1394,9 @@ private SuiteRunner createSuiteRunner(XmlSuite xmlSuite) {
}

for (IReporter r : result.getReporters()) {
addListener(r);
if (!m_reporters.containsKey(r.getClass())) {
addListener(r);
}
}

for (IConfigurationListener cl : m_configuration.getConfigurationListeners()) {
Expand Down

0 comments on commit 1595ce2

Please sign in to comment.