-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #2886 TestNG by design excludes suite level configs When there is inheritance involved and multiple Children of the same base class are included in a suite. But when reporting the results as xml TestNG is not excluding these configs from the reports. Fixed this discrepancy.
- Loading branch information
1 parent
ff5843a
commit 2e0c8bd
Showing
6 changed files
with
54 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
testng-core/src/test/java/test/reports/issue2886/BaseClassSample.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package test.reports.issue2886; | ||
|
||
import org.testng.annotations.BeforeSuite; | ||
|
||
public class BaseClassSample { | ||
|
||
@BeforeSuite | ||
public void beforeSuite() {} | ||
} |
9 changes: 9 additions & 0 deletions
9
testng-core/src/test/java/test/reports/issue2886/HydeTestSample.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package test.reports.issue2886; | ||
|
||
import org.testng.annotations.Test; | ||
|
||
public class HydeTestSample extends BaseClassSample { | ||
|
||
@Test | ||
public void rogueBehaviourTest() {} | ||
} |
8 changes: 8 additions & 0 deletions
8
testng-core/src/test/java/test/reports/issue2886/JekyllTestSample.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package test.reports.issue2886; | ||
|
||
import org.testng.annotations.Test; | ||
|
||
public class JekyllTestSample extends BaseClassSample { | ||
@Test | ||
public void gentleBehaviourTest() {} | ||
} |