Skip to content

PYTHON-1385: Remove nosetests references from AppVeyor build #1209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions appveyor/run_test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,19 @@ echo $env:ci_type
python --version
python -c "import platform; print(platform.architecture())"

pip install -r test-requirements.txt
pip install nose-ignore-docstring

$wc = New-Object 'System.Net.WebClient'

if($env:ci_type -eq 'unit'){
echo "Running Unit tests"
nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=unit_results.xml .\tests\unit
pytest -s -v --with-ignore-docstrings --with-xunit --xunit-file=unit_results.xml .\tests\unit

$env:EVENT_LOOP_MANAGER="gevent"
nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=unit_results.xml .\tests\unit\io\test_geventreactor.py
pytest -s -v --with-ignore-docstrings --with-xunit --xunit-file=unit_results.xml .\tests\unit\io\test_geventreactor.py
$env:EVENT_LOOP_MANAGER="eventlet"
nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=unit_results.xml .\tests\unit\io\test_eventletreactor.py
pytest -s -v --with-ignore-docstrings --with-xunit --xunit-file=unit_results.xml .\tests\unit\io\test_eventletreactor.py
$env:EVENT_LOOP_MANAGER="asyncore"

echo "uploading unit results"
Expand All @@ -31,13 +34,13 @@ if($env:ci_type -eq 'unit'){
if($env:ci_type -eq 'standard'){

echo "Running CQLEngine integration tests"
nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=cqlengine_results.xml .\tests\integration\cqlengine
pytest -s -v --with-ignore-docstrings --with-xunit --xunit-file=cqlengine_results.xml .\tests\integration\cqlengine
$cqlengine_tests_result = $lastexitcode
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\cqlengine_results.xml))
echo "uploading CQLEngine test results"

echo "Running standard integration tests"
nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=standard_results.xml .\tests\integration\standard
pytest -s -v --with-ignore-docstrings --with-xunit --xunit-file=standard_results.xml .\tests\integration\standard
$integration_tests_result = $lastexitcode
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\standard_results.xml))
echo "uploading standard integration test results"
Expand Down