c# - Error when attempting to run SpecFlow NUnit test: "Cannot access a disposed object. Object name: 'GherkinLanguageService'" -


i setting nunit c# tests using specflow, ones declared in specflowfeature don't seem picked text explorer. when trying manually run scenario (by right-clicking on them) following error:

 "cannot access disposed object. object name: 'gherkinlanguageservice'" 

...which doesn't ring bell @ all. has suggestion on how allow them run?

the feature code follows:

feature: specflowfeature     user     go page     in order see information  @ui scenario: browsing     given have home page open     when select menu     see information  @ui scenario: add asset client page     given have home page open     when go client page     , click add download button     , fill in form     , choose file upload     , submit form     see newly-submitted file 

and steps definitions automatically generated.

edit: list of installed nuget packages in test project:

  • microsoft.net.compilers 1.1.0-rc1
  • nunit 3.4.0
  • nunittestadapter 2.0.0
  • selenium.webdriver 2.53.0
  • specflow 2.1.0
  • specflow.nunit 2.1.0
  • specflow.nunit.runners 2.1.0

have @ code in repo https://github.com/sabotageandi/specflow.example.alltestrunners , compare project.

it contains specflow project nunit 2 , nunit 3.2.1.
there nunit tests visible in visual studio test explorer.

first try downgrade 3.2.1 of nunit. perhaps there problem in connection nunittestadapter.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -