-
Notifications
You must be signed in to change notification settings - Fork 84
Closed
Labels
Description
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?