CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Language: VB.NET

Run all Tests in Project with Testdriven.net

349 Views
Copy Code Show/Hide Line Numbers
' Import ...
 
Public Module EnvironmentEvents
 
' Autogenerated code ...
 
    Private Sub BuildEvents_OnBuildDone(ByVal Scope As EnvDTE.vsBuildScope, ByVal Action As EnvDTE.vsBuildAction) Handles BuildEvents.OnBuildDone
        If (DTE.ToolWindows.ErrorList.ErrorItems.Count = 0) Then
            SelectRootNode()
            DTE.ExecuteCommand("TestDriven.NET.RunTests")
        End If
    End Sub
 
    Private Sub SelectRootNode()
            Dim UIHSolutionExplorer As UIHierarchy = DTE.Windows.Item(Constants.vsext_wk_SProjectWindow).Object()
            Dim UIHSolutionRootNode As UIHierarchyItem = UIHSolutionExplorer.UIHierarchyItems.Item(1)
            UIHSolutionRootNode.Select(vsUISelectionType.vsUISelectionTypeSelect)
    End Sub
 
End Module
 
by Dennis Traub
  June 17, 2010 @ 9:40pm
Tags:
Description:
Edits your EnvironmentEvents in the Macro-IDE

Add a comment


Report Abuse
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate