Skip to content

Ability to wrap every Step with custom code #163

@OmerRaviv

Description

@OmerRaviv

I'm trying to use BDDfy inside a Visual Studio Integration test for testing a VS Extension (an integration test that uses MSTest with a special attribute "[HostType("VS IDE")]" which causes the test code to run from within a Visual Studio process, allowing the test to interact with Visual Studio's SDK).

In order to guarantee that my test runs well, I must wrap every step with the following code, to ensure the step runs within Visual Studio's UI thread:

  UIThreadInvoker.Invoke((ThreadInvoker)delegate()
        {                
                  // ...Actual step code here...
        });
  VisualStudio.WaitForIdle();

Is there currently a way to customize the step executor to do this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions