Obsolete warning when using just installed VS extension
CompletedI just downloaded and installed the extension into VS 2019, create my first specflow project (calculator-example using the template). After adding a line to the feature file and have the addin generate code on my clipboard, it turns out this code contains obsolete marked api:
ScenarioContext.Current.Pending();
-
Hi Rob,
Thanks for reaching out.
I think this is fine because the reference to the static scenario context is not intended to be permanent and we cannot assume that the class already has access to the ScenarioContext object via context injection as this would throw a build error of course.
Here is a link to the bug to resolve this issue - https://github.com/SpecFlowOSS/SpecFlow.VisualStudio/issues/144
We will have this resolved in the VS2022 version of the extension.
Thanks, Jordan.
0
Please sign in to leave a comment.
Comments
1 comment