[SpecFlow] Be able to access MSTest TestContext in BeforeTestRun/AfterTestRun hook
CompletedIt is possible to access the MSTest TestContext in the AssemblyInitialize
hook of MSTest.
[AssemblyInitialize] public static void AssemblyInit( TestContext context ) { .... }
Since SpecFlow 3.1 it is not possible anymore to define your own AssemblyInitialize
hook, as it is already used by SpecFlow.
Suggestion to fix this:
We have to pass the TestContext
through to our BeforeTestRun
`AfterTestRun` hooks.
-
Official comment
We added this feature with SpecFlow 3.6.*, which will be released in the next weeks.
-
Hi There,
This would be very useful. Any further work on this?
Thanks,
Roberto
3 -
Update: Planned
Hi Roberto, sorry for the late reply we have been busy with releasing a new version for SpecFlow+ LivingDoc: Updates to SpecFlow+ LivingDoc – LivingDoc goes into Overdrive - Behavior Driven Development for .NET
Yes, we are planning to work on the issue beginning of next year in January/February during our first Open-Source Iteration.
Feel free to join us and help us to make SpecFlow even better :) Let's start the New year working together on SpecFlow! - Behavior Driven Development for .NET
0
Post is closed for comments.
Comments
3 comments