Specflow error using TestDriven.Net - Could not find type

This is the first time I'm testing Specflow and created a VS2010 project with a link to TechTalk.SpecFlow, as well as nunit.framework. I added a sample function file:

Feature: Addition
    In order to avoid silly mistakes
    As a math idiot
    I want to be told the sum of two numbers

@mytag
Scenario: Add two numbers
    Given I have entered 50 into the calculator
    And I have entered 70 into the calculator
    When I press add
    Then the result should be 120 on the screen

When I run the test (using TestDriven.Net), I get the following error:

Test 'T:SpecFlowFeature1' failed: Couldn't find type with name 'SpecFlowFeature1'
System.Exception: Couldn't find type with name 'SpecFlowFeature1'
at MutantDesign.Xml.Documentation.MemberInfoUtilities.FindMemberInfo(Assembly assembly, String cref)
at TestDriven.TestRunner.AdaptorTestRunner.Run(ITestListener testListener, ITraceListener traceListener, String assemblyPath, String testPath)
at TestDriven.TestRunner.ThreadTestRunner.Runner.Run()

Does anyone know what I am missing?

+3
source share
2 answers

, , . ".feature" ( - ) "Run Tests" . .feature.cs "Run Tests" . , TestDriven.Net "" "*.feature".

+5

" ..." , , , , , .

, , SpecFlowFeature1 . Visual Studio ( ) , , "" .

0

Source: https://habr.com/ru/post/1764017/


All Articles