File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -354,7 +354,7 @@ if (-not $rubberduckTestResult) {
354
354
355
355
# Close the document
356
356
try {
357
- $doc.Close ()
357
+ $doc.Close ($false ) # Close without saving changes
358
358
Write-Host " Document closed successfully"
359
359
} catch {
360
360
Write-Host " Warning: Could not close document: $ ( $_.Exception.Message ) "
Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ if (-not $rubberduckInstallPath) {
233
233
Write-Host " ⏳ Downloading and installing CLI-Friendly DLL components..."
234
234
235
235
# Define the artifact URL and download location
236
- $artifactUrl = " https://github.com/DecimalTurn/Rubberduck/actions/runs/14609505761/artifacts/2990874874 "
236
+ $artifactUrl = " https://github.com/DecimalTurn/Rubberduck/releases/download/v2.5.92.6373-CLI-Friendly/rubberduck-v2.5.92.6373-CLI-Friendly.zip "
237
237
$artifactZipPath = " $env: TEMP \RubberduckArtifacts.zip"
238
238
$rubberduckInstallDir = $rubberduckInstallPath # Use the path returned by Test-RubberduckInstalled
239
239
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ function Test-WithRubberduck {
8
8
$rubberduckAddin = $null
9
9
$rubberduck = $null
10
10
try {
11
- $rubberduckAddin = $officeApp.VBE.COMAddIns.Item (" Rubberduck.Extension" )
11
+ $rubberduckAddin = $officeApp.VBE.AddIns (" Rubberduck.Extension" )
12
12
if ($null -eq $rubberduckAddin ) {
13
13
Write-Host " 🔴 Error: Rubberduck add-in not found. Please install it first."
14
14
return $false
@@ -24,7 +24,7 @@ function Test-WithRubberduck {
24
24
25
25
# Run all tests in the active VBA project
26
26
$logPath = " $env: temp \RubberduckTestLog.txt"
27
- $rubberduck.RunAllTests ($logPath )
27
+ $rubberduck.RunAllTestsAndGetResults ($logPath )
28
28
Write-Host " All tests executed successfully."
29
29
30
30
# Wait for tests to complete (optional: add a timeout)
@@ -46,6 +46,10 @@ function Test-WithRubberduck {
46
46
Write-Host " 🔴 Error: Log file not found. Please check the installation."
47
47
return $false
48
48
}
49
+
50
+ # Delete the log file after processing
51
+ Remove-Item - Path $logPath - ErrorAction SilentlyContinue
52
+ Write-Host " Log file deleted."
49
53
50
54
# Make sure to release the COM object
51
55
if ($null -ne $rubberduck ) {
You can’t perform that action at this time.
0 commit comments