首页 > 解决方案 > 更新 SpecFlow 包后出现 Allure 错误

问题描述

我正在使用 Specflow、C# 和 Allure 编写测试以生成报告。更新包后

从版本3.3.573.4.31 我收到此错误:

System.TypeInitializationException : The type initializer for 'Allure.SpecFlowPlugin.AllureTestTracerWrapper' threw an exception.
---- System.TypeInitializationException : The type initializer for 'Allure.SpecFlowPlugin.PluginHelper' threw an exception.
-------- System.MissingMethodException : Method not found: 'Void TechTalk.SpecFlow.FeatureInfo..ctor(System.Globalization.CultureInfo, System.String, System.String, System.String[])'

你知道我该如何解决这个问题吗?

感谢您就如何解决此问题提供任何意见或建议。

异常详情

标签: c#specflowallure

解决方案


Specflow.Allure 包现已更新以支持 SpecFlow 3.4+ https://www.nuget.org/packages/SpecFlow.Allure/3.5.0.4


推荐阅读