reportportal / agent-net-specflow

Report Portal agent for SpecFlow
Apache License 2.0
10 stars 4 forks source link

User's event subscribers might break reporting #50

Closed nvborisenko closed 4 years ago

nvborisenko commented 4 years ago

https://github.com/reportportal/agent-net-specflow/blob/1be62cb7c99ae13f53f23c431ba499e9acac3a23/src/ReportPortal.SpecFlowPlugin/ReportPortalHooks.cs#L43

If user wants report customization, he subscribes to reporting events. If event handler throws an exception, then plugin cannot send the report.

Solution: try/catch all handler invocations, and write out a message to internal log file.

nvborisenko commented 4 years ago

Fixed in v2.1.4