Custom unit test mode annotation

Hi,

We have a solution when we can run the same unit tests in different modes (interactive/none interactive, integration none integration).

When we run the tests in TeamCity we use an environment variable to choose the mode we want to use for the tests execution and that works great.

When we run the tests in VisualStudio we currently use a static variable to define what mode we want to use.

This works but it's inconvenient. Instead of that we would like to select the  mode from the Resharper context menu.

Would it be possible to add a mode annotation that Resharper would recognize and show in the unit test run context menu, and then set it on some static context variable, to make it possible inspect it during test execution?

 

 

 

 

 

Please sign in to leave a comment.