xunit cannot discover tests after upgrading to v2 -


after upgrading xunit2 , following migration guide (http://xunit.github.io/docs/test-migration.html), following error when discovering tests in projects:

------ discover test started ------ [xunit.net 00:00:00.0701819] exception discovering tests mylibrary.tests.dll: system.missingmethodexception: constructor on type 'xunit.sdk.testframeworkproxy' not found. @ system.runtimetype.createinstanceimpl(bindingflags bindingattr, binder binder, object[] args, cultureinfo culture, object[] activationattributes, stackcrawlmark& stackmark) @ system.activator.createinstance(type type, bindingflags bindingattr, binder binder, object[] args, cultureinfo culture, object[] activationattributes) @ system.activator.createinstance(string assemblystring, string typename, boolean ignorecase, bindingflags bindingattr, binder binder, object[] args, cultureinfo culture, object[] activationattributes, evidence securityinfo, stackcrawlmark& stackmark) @ system.activator.createinstance(string assemblyname, string typename, boolean ignorecase, bindingflags bindingattr, binder binder, object[] args, cultureinfo culture, object[] activationattributes, evidence securityinfo) @ system.appdomain.createinstance(string assemblyname, string typename, boolean ignorecase, bindingflags bindingattr, binder binder, object[] args, cultureinfo culture, object[] activationattributes, evidence securityattributes) @ system.appdomain.createinstanceandunwrap(string assemblyname, string typename, boolean ignorecase, bindingflags bindingattr, binder binder, object[] args, cultureinfo culture, object[] activationattributes, evidence securityattributes) @ system.appdomain.createinstanceandunwrap(string assemblyname, string typename, boolean ignorecase, bindingflags bindingattr, binder binder, object[] args, cultureinfo culture, object[] activationattributes, evidence securityattributes) @ xunit.remoteappdomainmanager.createobject[tobject](string assemblyname, string typename, object[] args) @ xunit.xunit2discoverer..ctor(isourceinformationprovider sourceinformationprovider, iassemblyinfo assemblyinfo, string assemblyfilename, string xunitexecutionassemblypath, string configfilename, boolean shadowcopy, string shadowcopyfolder) @ xunit.xunitfrontcontroller.createinnercontroller() @ xunit.xunitfrontcontroller.get_innercontroller() @ xunit.runner.visualstudio.testadapter.vstestrunner.discovertests[tvisitor](ienumerable`1 sources, imessagelogger logger, func`3 visitorfactory, action`3 visitcomplete, stopwatch stopwatch) ========== discover test finished: 0 found (0:00:00.2454142) ==========

i have no experience debugging testrunners or xunit, don't know look. hope has encountered problem before , can give quick answer, google-fu shows nothing.

i don't know information useful tracking down problem, i'll add things people ask them.

from test runner documentation: if you're having problems discovering or running tests, may victim of corrupted runner cache inside visual studio.

deleting %temp%\visualstudiotestexplorerextensions seems fix issue.

ref.: http://xunit.github.io/docs/running-tests-in-vs.html


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -