On executing Specflow 3.0 with mstest throws an error

9 views
Skip to first unread message
Assigned to spec...@gmail.com by sagi.r...@gmail.com

Ravi Raju

unread,
Mar 4, 2020, 5:09:08 AM3/4/20
to spe...@googlegroups.com
Hi All,

I have test from spec flow running on my local machine unfortunately when I run the same tests on CI machine I get below error

It throws an error 
Message: Unit Test Adapter threw exception: 
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. 

Project Setting 

Enable Tracing - False
Enable SpcflowSingle Generator Custom Tool - False 


Installed Packages Are:

SpecFlow - 3.182  version
SpecFlow.MsTest- 3.182  version
Specflow,Toole,SBuild.Generation - 3.182  version


When I tried to enable both projects setting to
 Enable Tracing - True
Enable SpcflowSingle Generator Custom Tool - True - The tests of the project  in test explorer doesn't show 

Let me know if you need further details 

Could you please suggest me the appropriate solution for this 









SpecFlow

unread,
Mar 5, 2020, 5:33:02 AM3/5/20
to SpecRun
> Enable SpcflowSingle Generator Custom Tool - True - The tests of the project  in test explorer doesn't show
The Enable SpecFlow Single Generator Custom Tool is a legacy setting for old projects that uses the old method of generating code-behind files. If you are using the MSBuild Generation, you should leave this set to false. There is more information here.

There is a similar issue here, which was caused by missing dependencies on the remote agent. You may be missing something on the CI machine that you have installed locally.

Ravi Raju

unread,
Mar 6, 2020, 1:21:10 PM3/6/20
to spe...@googlegroups.com
Thank You all, I managed to fix it.

I has degraded to lower version and managed with other packages, it's working now.



--
You received this message because you are subscribed to the Google Groups "SpecRun" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specrun+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/specrun/818cd0a2-248d-4558-b6bd-4a9538979017%40googlegroups.com.
--
Regards! -Ravi Raju Sagi Sent from iPhone
Reply all
Reply to author
Forward
0 new messages