How to stop SpecFlow from displaying time information

How can I configure SpecFlow so that it does not display time information as part of the test text, for example.

-> done: Steps.ThenIWillBeDeniedAccess () (0.0s)

Greetings. Jac.

+3
source share
1 answer

Turns out I need to put this in a file app.config:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="specFlow" type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow"/>
  </configSections>
  <specFlow>
    <language feature="en-GB" />
    <unitTestProvider name="nUnit" />

    <trace traceSuccessfulSteps="false" traceTimings="false" />
  </specFlow>
</configuration>

The key value is here traceSuccessfulSteps, setting this parameter to falsedid the trick.

+5
source

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


All Articles