mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-25 20:40:36 +03:00
25 lines
478 B
PowerShell
25 lines
478 B
PowerShell
# Run tests
|
|
|
|
$backend = Resolve-Path -Path "$PSScriptRoot\..\..\rsconcept\backend"
|
|
$frontend = Resolve-Path -Path "$PSScriptRoot\..\..\rsconcept\frontend"
|
|
|
|
function RunTests() {
|
|
TestBackend
|
|
TestFrontend
|
|
}
|
|
|
|
function TestBackend() {
|
|
$pyExec = "$backend\venv\Scripts\python.exe"
|
|
$djangoSrc = "$backend\manage.py"
|
|
|
|
Set-Location $backend
|
|
& $pyExec $djangoSrc check
|
|
& $pyExec $djangoSrc test
|
|
}
|
|
|
|
function TestFrontend() {
|
|
Set-Location $frontend
|
|
& npm test
|
|
}
|
|
|
|
RunTests |