Skip to content

Commit b36759c

Browse files
committed
Add option to run all tests from VBA
1 parent c1c880e commit b36759c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Attribute VB_Name = "RunTests"
2+
3+
Sub RunAllTests()
4+
Dim Output As String
5+
With Application.VBE.AddIns("Rubberduck.Extension").Object
6+
Dim LogPath As String
7+
LogPath = ThisWorkbook.Path & "\RD_Log_" & ThisWorkbook.Name & ".txt"
8+
Output = .RunAllTestsAndGetResults(LogPath)
9+
End With
10+
' Output the result to the Immediate Window
11+
Debug.Print Output
12+
End Sub

0 commit comments

Comments
 (0)