Spec flow and unity3D

294 views
Skip to first unread message

Ken Clemson

unread,
Apr 11, 2017, 4:56:52 AM4/11/17
to SpecFlow
Hi I'm new to SpecFlow and a bit of a code nube.  So anyway I have followed the tutorial on the SpecFlow site.  It seems as though when I try to run the tests if my variables inherit from Monobehaviour I get this error "[ERROR] Exception has been thrown by the target of an invocation. -> ECall methods must be packaged into a system module.
Scenario: Add two numbers in SpecFlowFeature1 -> Failed on thread #0"  

So I'm guessing that the program cant access these variables through Monobehaviour ?  I've downloaded the SpecFlow.Unity pluggin but Im not sure iff this will help the error.
Can anyone help me in the right direction ?

Andreas Willich

unread,
Apr 11, 2017, 5:19:56 AM4/11/17
to SpecFlow
Hi Ken

I am not sure if someone used SpecFlow with Unity 3d yet and if it is possible to use it.
Is Monobehaviour a class of Unity? I don't know this one.

About the SpecFlow.Unity plugin: This is a plugin for the dependency injection container Unity (https://github.com/unitycontainer/unit) and not for the 3D Engine Unity.

BR
Andreas

--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specflow+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ken Clemson

unread,
Apr 11, 2017, 6:15:19 AM4/11/17
to SpecFlow
HI Andreas, yes MonoBehaviour is the main class that everything inherits from......hmmmm I guess I will need to look at a different solution.
Reply all
Reply to author
Forward
0 new messages