Skip to content

Commit

Permalink
update more
Browse files Browse the repository at this point in the history
  • Loading branch information
junkmd committed Oct 8, 2023
1 parent c1dfaa5 commit c99a277
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ci/runTestsuite.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,14 @@ function run {

#nosetests --all-modules --with-xunit pywinauto/unittests
# --traverse-namespace is required for python 3.8 https://stackoverflow.com/q/58556183
$pyver = $env:PYTHON_VERSION
if ($pyver -lt [version]'3.9') {
Write-Host "run nosetests"
nosetests --nologcapture --traverse-namespace --exclude=testall --with-xunit --with-coverage --cover-html --cover-html-dir=Coverage_report --cover-package=pywinauto --verbosity=3 pywinauto\unittests
} else {
$pyver = [System.Version]::new($env:PYTHON_VERSION)
if if ($pyver.Major -gt 3 -or ($pyver.Major -eq 3 -and $pyver.Minor -ge 9)) {
Write-Host "run nose2"
nose2 --nologcapture --exclude=testall --with-xunit --with-coverage --cover-html --cover-html-dir=Coverage_report --cover-package=pywinauto --verbosity=3 pywinauto\unittests

} else {
Write-Host "run nosetests"
nosetests --nologcapture --traverse-namespace --exclude=testall --with-xunit --with-coverage --cover-html --cover-html-dir=Coverage_report --cover-package=pywinauto --verbosity=3 pywinauto\unittests
}
$success = $?
Write-Host "result code of nosetests:" $success
Expand Down

0 comments on commit c99a277

Please sign in to comment.