Skip to content

Instantly share code, notes, and snippets.

@testautomationtribe
Created October 15, 2016 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save testautomationtribe/e5634defce8b814955da3f5edef15e7d to your computer and use it in GitHub Desktop.
Save testautomationtribe/e5634defce8b814955da3f5edef15e7d to your computer and use it in GitHub Desktop.
using NUnit.Framework;
using RelevantCodes.ExtentReports;
namespace TatAutomationFramework.Common
{
/// <summary>
/// Creates a single instance of Extent Report
/// </summary>
public class ReportingManager
{
/// <summary>
/// Create new instance of Extent report
/// </summary>
private static readonly ExtentReports _instance = new ExtentReports(TestContext.CurrentContext.TestDirectory + "\\TestResults.html");
static ReportingManager() { }
private ReportingManager() { }
/// <summary>
/// Property to return the instance of the report.
/// </summary>
/// <value>
/// The instance.
/// </value>
public static ExtentReports Instance
{
get
{
return _instance;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment