SpecFlowOSS / SpecFlow

#1 .NET BDD Framework. SpecFlow automates your testing & works with your existing code. Find Bugs before they happen. Behavior Driven Development helps developers, testers, and business representatives to get a better understanding of their collaboration
https://www.specflow.org/
Other
2.24k stars 754 forks source link

Internal Reflection Exception is not surfaced #1320

Open godrose opened 5 years ago

godrose commented 5 years ago

SpecFlow Version:

Used Test Runner

Version number: 3.0.132-beta

Visual Studio Version

Are the latest Visual Studio updates installed?

.NET Framework:

Test Execution Method:

<SpecFlow> Section in app.config

{ "bindingCulture": { "language": "en-us" }, "language": { "feature": "en-us" },

"plugins": [], "stepAssemblies": [ { "assembly": "BDD.NetCore.Steps.Adapters" }, { "assembly": "BDD.NetCore.Launcher" } ] }

Repro Project

None

Issue Description

There is an inner exception during SpecFlow initialization which isn't surfaced and thus its source is unclear:

-> Loading plugin /Users/genaverdel/Workspace/bdd-netcore/specs/Bin/Debug/TechTalk.SpecFlow.xUnit.SpecFlowPlugin.dll -> Using specflow.json Exception thrown: 'System.Reflection.ReflectionTypeLoadException' in System.Private.CoreLib.dll Exception thrown: 'System.Reflection.ReflectionTypeLoadException' in TechTalk.SpecFlow.dll

Steps to Reproduce

Unfortunately I can't share the code here

godrose commented 5 years ago

@SabotageAndi I found the reflection problem manually. It would be nice to have it surfaced or dumped for faster debugging

SabotageAndi commented 5 years ago

@godrose Until https://github.com/techtalk/SpecFlow/issues/1305 is not fixed, I won't be able to have a look at this.

godrose commented 5 years ago

@SabotageAndi Is there any update?

SabotageAndi commented 5 years ago

@godrose No, no progress on this issue. An sample application to reproduce this error would help to make the needed changes.