Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using suite xml configurations causes methods to be reported more than once #22

Open
mtorres10 opened this issue Feb 17, 2021 · 0 comments

Comments

@mtorres10
Copy link

Expected Behavior
Executing a suite.xml using ExtentITestListenerClassAdapter should report each method call a single time.
image

Current Behavior
Executing a suite.xml using ExtentITestListenerClassAdapter reports each method call several times.
image

Steps to Reproduce

  1. Download testng-sample
  2. Add the following suite.xml (rename from .txt to .xml): TestSuite.txt
  3. Execute suite.

Alternatively download updated example from this branch and execute TestSuite.xml: https://github.com/mtorres10/examples/tree/feature/UpdateReportsVersionTo5

Additional Information
It seems listener behaves differently when using suites. This behavior does not happens when using surefire without suites (using includes and excludes). This issue is present on previous versions of the adapter as well. Using adapter 1.0.6 and reports 4.0.6 behaves the same way.

Attaching both reports for comparison
SparkReport using xml suite.zip
SparkReport.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant