extent-framework / extentreports-csharp

Extent Reporting Library, .NET
http://extentreports.com
Apache License 2.0
49 stars 40 forks source link

Fixes #220 - Duplicate graph in Dashboard when Analysis.Strategy = Test #221

Closed anshooarora closed 4 days ago

anshooarora commented 4 days ago

Prior to this fix, the following code results in an extra chart due to a bug which considers 3 levels when AnalysisStrategy == [Test, Class].

using AventStack.ExtentReports;
using AventStack.ExtentReports.Reporter;

var extent = new ExtentReports();
extent.AttachReporter(new ExtentSparkReporter("index.html"));
extent.CreateTest("Test").CreateNode("Node").CreateNode("Node").Pass();
extent.Flush();

This should not be the case, unless the analysis occurs for BDD/Specflow type instances where there are indeed 3 levels of tests:

- Feature
  - Scenario
    - Step
      - Log (optional) (reported under log events instead of test)

Before:

image

After:

image

anshooarora commented 4 days ago

@jrod567 - fyi, this should fix the bug with the extra chart showing. Merging.