Chat monitors stream to end
This commit is contained in:
parent
b50a4bad02
commit
38d51636af
4 changed files with 89 additions and 1 deletions
37
run_tests.ps1
Normal file
37
run_tests.ps1
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
# PowerShell script to run Twitch Archive unit tests
|
||||
# Run this script to execute all unit tests
|
||||
|
||||
Write-Host "======================================================================" -ForegroundColor Cyan
|
||||
Write-Host "TWITCH ARCHIVE - Running Unit Tests" -ForegroundColor Cyan
|
||||
Write-Host "======================================================================" -ForegroundColor Cyan
|
||||
Write-Host ""
|
||||
|
||||
# Check if virtual environment exists and activate it
|
||||
$venvPath = ".\venv314\Scripts\Activate.ps1"
|
||||
if (Test-Path $venvPath) {
|
||||
Write-Host "✓ Activating virtual environment..." -ForegroundColor Green
|
||||
& $venvPath
|
||||
} else {
|
||||
Write-Host "⚠ Virtual environment not found at $venvPath" -ForegroundColor Yellow
|
||||
Write-Host " Continuing with system Python..." -ForegroundColor Yellow
|
||||
}
|
||||
|
||||
Write-Host ""
|
||||
|
||||
# Run the tests
|
||||
Write-Host "Running unit tests..." -ForegroundColor Cyan
|
||||
python test_twitch_archive_simple.py
|
||||
|
||||
# Check exit code
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
Write-Host ""
|
||||
Write-Host "======================================================================" -ForegroundColor Green
|
||||
Write-Host "✓ ALL TESTS PASSED" -ForegroundColor Green
|
||||
Write-Host "======================================================================" -ForegroundColor Green
|
||||
} else {
|
||||
Write-Host ""
|
||||
Write-Host "======================================================================" -ForegroundColor Red
|
||||
Write-Host "✗ SOME TESTS FAILED" -ForegroundColor Red
|
||||
Write-Host "======================================================================" -ForegroundColor Red
|
||||
exit $LASTEXITCODE
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue