ITestExecutionPlugin.BeforeTestStarted Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This method is called before a test starts.
public:
bool BeforeTestStarted(Microsoft::VisualStudio::TestTools::Execution::IDataCollectionRunContext ^ runContext, Microsoft::VisualStudio::TestTools::Common::TestExecId ^ id);
public bool BeforeTestStarted (Microsoft.VisualStudio.TestTools.Execution.IDataCollectionRunContext runContext, Microsoft.VisualStudio.TestTools.Common.TestExecId id);
abstract member BeforeTestStarted : Microsoft.VisualStudio.TestTools.Execution.IDataCollectionRunContext * Microsoft.VisualStudio.TestTools.Common.TestExecId -> bool
Public Function BeforeTestStarted (runContext As IDataCollectionRunContext, id As TestExecId) As Boolean
Parameters
- runContext
- IDataCollectionRunContext
An IDataCollectionRunContext object that represents the context for the test.
- id
- TestExecId
The test ID.
Returns
true if the agent should continue to run the test; false if the agent should not run the test.NoteWhen false is returned, the agent assumes that the plug-in reported a test failure for that test and does not record a result. Even when false is returned, the plug-in will still raise a TestEnd event for that test.