Brian Mitchell
Brian Mitchell

Reputation: 383

Specflow AfterScenario

Using Specflow attributes

I am trying to get a piece of code to run at the very end, so when all tests are finished.

All tests are set to run in parallel

There might be multiple features and scenarios running and I need this to only run once and at the very end when everything is finished, not after each feature because placed in there it will run multiple times.

Upvotes: 0

Views: 573

Answers (1)

Anand
Anand

Reputation: 1939

Use the AfterTestRun hook.

For more specification about the hooks: https://github.com/techtalk/SpecFlow/wiki/Hooks

Upvotes: 1

Related Questions