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

Another crash at Flush() #171

Open
Jens-G opened this issue Jul 3, 2023 · 1 comment
Open

Another crash at Flush() #171

Jens-G opened this issue Jul 3, 2023 · 1 comment

Comments

@Jens-G
Copy link

Jens-G commented Jul 3, 2023

System.MissingMethodException : Method not found: 'System.Runtime.CompilerServices.CallSiteBinder Microsoft.CSharp.RuntimeBinder.Binder.Convert(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags, System.Type, System.Type)'.

@anshooarora
Copy link
Member

anshooarora commented Sep 1, 2023

Can you give it a try with the latest beta and revert back if you continue to face this issue?

https://www.nuget.org/packages/ExtentReports/5.0.0-beta2

Please note: with version 5, ExtentHtmlReporter is deprecated and ExtentSparkReporter is the replacement. So the above code will change slightly:

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

var extent = new ExtentReports();
var htmlReporter = new ExtentSparkReporter("index.html");
extent.AttachReporter(htmlReporter);
extent.CreateTest("MyFirstTest").Pass("details");
extent.Flush();

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

2 participants