.net - SpecFlow skips Scenarios if the one before it fails Assertion -
i have bunch of scenarios written in feature file have assertions in them. if first scenario fails assertion, specflow skips scenarios follow after it. scenarios continue run if 1 them fails in nunit. using specrun test provider, not find on specflow website me. missing in app.config file?
the following app.config file:
<?xml version="1.0" encoding="utf-8"?> <configuration> <configsections> <section name="specflow" type="techtalk.specflow.configuration.configurationsectionhandler, techtalk.specflow" /> </configsections> <specflow> <!-- additional details on specflow configuration options see http://go.specflow.org/doc-config --> <unittestprovider name="specrun" /> <!-- setting flag continue on first assert error --> <runtime stopatfirsterror="false" /> <plugins> <add name="specrun" /> </plugins> </specflow> </configuration>
specrun stops execution after number of failing tests. limit can specified in .srprofile (ex: default.srprofile) following line.
<execution retryfor="none" stopafterfailures="0" testthreadcount="1" testschedulingmode="sequential" />
retryfor = "none" tell specrun not retry test if fails assertion.
stopafterfailures = "0" tell specrun not stop after failures , continue.
Comments
Post a Comment