mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 21:10:38 +03:00
12 lines
434 B
PowerShell
12 lines
434 B
PowerShell
# Run coverage analysis
|
|
Set-Location $PSScriptRoot\backend
|
|
|
|
$coverageExec = "$PSScriptRoot\backend\venv\Scripts\coverage.exe"
|
|
$djangoSrc = "$PSScriptRoot\backend\manage.py"
|
|
$exclude = '*/venv/*,*/tests/*,*/migrations/*,*__init__.py,manage.py,apps.py,urls.py,settings.py'
|
|
|
|
& $coverageExec run --omit=$exclude $djangoSrc test
|
|
& $coverageExec report
|
|
& $coverageExec html
|
|
|
|
Start-Process "file:///$PSScriptRoot\backend\htmlcov\index.html" |