Skip to content

Commit 5a587d9

Browse files
🩹 [Refactor]: Replace Write-Host with Write-Warning in BeforeAll and AfterAll scripts for better logging
1 parent adba801 commit 5a587d9

File tree

5 files changed

+18
-34
lines changed

5 files changed

+18
-34
lines changed

‎.github/copilot-instructions.md‎

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Write-Host "=== AFTERALL TEARDOWN SCRIPT EXECUTING ==="
2-
Write-Host "Tearing down test environment..."
1+
Write-Warning "=== AFTERALL TEARDOWN SCRIPT EXECUTING ==="
2+
Write-Warning "Tearing down test environment..."
33

44
# Example teardown tasks:
55
# - Clean up test infrastructure
@@ -8,5 +8,5 @@ Write-Host "Tearing down test environment..."
88
# - Drop test databases
99
# - Stop test services
1010

11-
Write-Host "Test environment teardown completed successfully!"
12-
Write-Host "=== AFTERALL TEARDOWN SCRIPT COMPLETED ==="
11+
Write-Warning "Test environment teardown completed successfully!"
12+
Write-Warning "=== AFTERALL TEARDOWN SCRIPT COMPLETED ==="
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Write-Host "=== BEFOREALL SETUP SCRIPT EXECUTING ==="
2-
Write-Host "Setting up test environment..."
1+
Write-Warning "=== BEFOREALL SETUP SCRIPT EXECUTING ==="
2+
Write-Warning "Setting up test environment..."
33

44
# Example setup tasks:
55
# - Deploy test infrastructure
@@ -8,5 +8,5 @@ Write-Host "Setting up test environment..."
88
# - Set up test databases
99
# - Configure test services
1010

11-
Write-Host "Test environment setup completed successfully!"
12-
Write-Host "=== BEFOREALL SETUP SCRIPT COMPLETED ==="
11+
Write-Warning "Test environment setup completed successfully!"
12+
Write-Warning "=== BEFOREALL SETUP SCRIPT COMPLETED ==="
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
Write-Host "=== AFTERALL TEARDOWN SCRIPT (Environments) EXECUTING ==="
2-
Write-Host "Tearing down test environment for Environments..."
1+
Write-Warning "=== AFTERALL TEARDOWN SCRIPT (Environments) EXECUTING ==="
2+
Write-Warning "Tearing down test environment for Environments..."
33

44
# Example teardown tasks for Environments directory:
5-
Write-Host "Cleaning up Environments test environment..."
5+
Write-Warning "Cleaning up Environments test environment..."
66

7-
Write-Host "Environments environment teardown completed successfully!"
8-
Write-Host "=== AFTERALL TEARDOWN SCRIPT (Environments) COMPLETED ==="
7+
Write-Warning "Environments environment teardown completed successfully!"
8+
Write-Warning "=== AFTERALL TEARDOWN SCRIPT (Environments) COMPLETED ==="
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
Write-Host "=== BEFOREALL SETUP SCRIPT EXECUTING ==="
2-
Write-Host "Setting up test environment..."
1+
Write-Warning "=== BEFOREALL SETUP SCRIPT EXECUTING ==="
2+
Write-Warning "Setting up test environment..."
33

44
# Example setup tasks for test environment:
5-
Write-Host "Initializing test environment..."
5+
Write-Warning "Initializing test environment..."
66

7-
Write-Host "Test environment setup completed successfully!"
8-
Write-Host "=== BEFOREALL SETUP SCRIPT COMPLETED ==="
7+
Write-Warning "Test environment setup completed successfully!"
8+
Write-Warning "=== BEFOREALL SETUP SCRIPT COMPLETED ==="

0 commit comments

Comments
 (0)