{"action":"created","issue":{"url":"https://api.github.com/repos/techtalk/SpecFlow/issues/944","repository_url":"https://api.github.com/repos/techtalk/SpecFlow","labels_url":"https://api.github.com/repos/techtalk/SpecFlow/issues/944/labels{/name}","comments_url":"https://api.github.com/repos/techtalk/SpecFlow/issues/944/comments","events_url":"https://api.github.com/repos/techtalk/SpecFlow/issues/944/events","html_url":"https://github.com/techtalk/SpecFlow/issues/944","id":260031553,"number":944,"title":"External Assembly defaults back to nunit","user":{"login":"instecjason","id":22374873,"avatar_url":"https://avatars1.githubusercontent.com/u/22374873?v=4","gravatar_id":"","url":"https://api.github.com/users/instecjason","html_url":"https://github.com/instecjason","followers_url":"https://api.github.com/users/instecjason/followers","following_url":"https://api.github.com/users/instecjason/following{/other_user}","gists_url":"https://api.github.com/users/instecjason/gists{/gist_id}","starred_url":"https://api.github.com/users/instecjason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/instecjason/subscriptions","organizations_url":"https://api.github.com/users/instecjason/orgs","repos_url":"https://api.github.com/users/instecjason/repos","events_url":"https://api.github.com/users/instecjason/events{/privacy}","received_events_url":"https://api.github.com/users/instecjason/received_events","type":"User","site_admin":false},"labels":[{"id":375249731,"url":"https://api.github.com/repos/techtalk/SpecFlow/labels/xUnit","name":"xUnit","color":"1d76db","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-09-23T19:08:08Z","updated_at":"2018-03-02T18:22:54Z","closed_at":"2018-03-02T18:22:54Z","author_association":"NONE","body":"CHECKBOX ('[ ]') -->\r\n### SpecFlow Version:\r\n- [ X ]\t2.2\r\n- [ ]\t2.1\r\n- [ ]\t2.0\r\n- [ ]\t1.9\r\n \r\n### Used Test Runner \r\n- [ ] SpecFlow+Runner\r\n- [ ]\tMSTest \r\n- [ ]\tNUnit\r\n- [ X ]\tXunit\r\n\r\n<!-- PLEASE INCLUDE THE VERSION NUMBER OF YOUR TEST RUNNER -->\r\nVersion number: 2.2\r\nI'm also using SpecFlow.xUnit.Adaptor 1.0\r\n\r\n### Visual Studio Version\r\n- [ X ]\tVS 2017\r\n- [ ]\tVS 2015\r\n- [ ]\tVS 2013\r\n\r\n### Are the latest Visual Studio updates installed?\r\n- [ X ]\tYes\r\n- [ ]\tNo\r\n \r\n### .NET Framework:\r\n- [ X ]\t>= .NET 4\r\n- [ ]\tbefore .NET 4\r\n\r\n### Test Execution Method:\r\n- [ X ]\tVisual Studio Test Explorer\r\n- [ ]\tTFS/VSTS – Task – PLEASE SPECIFY THE NAME OF THE TASK\r\n- [ ]\tCommand line – PLEASE SPECIFY THE FULL COMMAND LINE\r\n \r\n### &lt;SpecFlow> Section in app.config\r\n\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<configuration>\r\n  <configSections>\r\n    <section name=\"specFlow\" type=\"TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow\" />\r\n  </configSections>\r\n  <specFlow>\r\n    <!-- For additional details on SpecFlow configuration options see http://go.specflow.org/doc-config -->\r\n    <unitTestProvider name=\"xUnit\" />\r\n    <stepAssemblies>\r\n      <stepAssembly assembly=\"Instec.StrawberryMoon.Tests\" />\r\n    </stepAssemblies>\r\n  </specFlow>\r\n</configuration>\r\n```\r\n\r\n### Repro Project\r\n<!-- PLEASE INCLUDE A LINK TO A PROJECT THAT DEMONSTRATES THE ISSUE YOU ARE REPORTING, IF POSSIBLE \r\nFor information on how to include a useful repro, refer to https://stackoverflow.com/help/mcve\r\n-->\r\n\r\n### Issue Description\r\nWhen I attempt to use an external binding assembly, I get the following error:\r\nMessage: System.IO.FileNotFoundException : Could not load file or assembly 'nunit.framework' or one of its dependencies. The system cannot find the file specified.\r\n\r\nIt appears to be attempting to use nUnit even though I am using xUnit.  If I copy the step file INTO my project it works fine but if I move it to a shared library it doesn't work.\r\n\r\n### Steps to Reproduce\r\n<!-- PLEASE DESCRIBE THE STEPS REQUIRED TO REPRODUCE THIS ISSUE, IF POSSIBLE -->\r\n"},"comment":{"url":"https://api.github.com/repos/techtalk/SpecFlow/issues/comments/370008087","html_url":"https://github.com/techtalk/SpecFlow/issues/944#issuecomment-370008087","issue_url":"https://api.github.com/repos/techtalk/SpecFlow/issues/944","id":370008087,"user":{"login":"instecjason","id":22374873,"avatar_url":"https://avatars1.githubusercontent.com/u/22374873?v=4","gravatar_id":"","url":"https://api.github.com/users/instecjason","html_url":"https://github.com/instecjason","followers_url":"https://api.github.com/users/instecjason/followers","following_url":"https://api.github.com/users/instecjason/following{/other_user}","gists_url":"https://api.github.com/users/instecjason/gists{/gist_id}","starred_url":"https://api.github.com/users/instecjason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/instecjason/subscriptions","organizations_url":"https://api.github.com/users/instecjason/orgs","repos_url":"https://api.github.com/users/instecjason/repos","events_url":"https://api.github.com/users/instecjason/events{/privacy}","received_events_url":"https://api.github.com/users/instecjason/received_events","type":"User","site_admin":false},"created_at":"2018-03-02T18:22:54Z","updated_at":"2018-03-02T18:22:54Z","author_association":"NONE","body":"Hey there, so I upgraded to SpecFlow 2.3 and the latest Visual studio plugin.  I removed the xUnit Adapter and am using it the normal way.  The Code Behind files are generated now and everything seems to work.  Additionally, the external assembly works ASSUMING the app.config is a real file in the project root.  I was attempting to use a \"link\" in the csproj file so that I could share the same file between projects.  Surprisingly, when using a \"link\" the config is read because it uses xUnit not the default nUnit but the external assembly portion of the config is ignored.  I just copied the file to each project which is acceptable if not optimal.  Finally, I have to include the nUnit Nuget package even though I am using xUnit to get any kind of real feedback when a step is not found during execution.  When an exception is thrown it appears that it uses the nUnit library to report the error and if you don't have it then all you get is a File.IO exception that it can't find nUnit.\r\n\r\nAnyway, I wanted to report back that I think this particular issue is closed but there are a few odd things to consider when doing this.  But I have it all working and the experience is pleasant."}}
{"actor":{"display_login":"instecjason"}}