Skip to content

Commit

Permalink
Enable appveyor list separate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed May 5, 2017
1 parent 282998e commit a3313b2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,6 @@ ENV/
# Eclipse, PyDev
.project
.pydevproject

# test results in junit format for Appveyor
/junit-test-results.xml
10 changes: 7 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ install:
- "mklink /d \"C:\\Program Files\\Python\" %PYTHON%"
- "SET PYTHON=\"C:\\Program Files\\Python\""
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "python -m pip install tox"

build: off

test_script:
- "python -m pip install tox"
- "tox"
test_script: tox

after_test:
- ps: |
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\junit-test-results.xml))
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ envlist = python
[testenv]
usedevelop = True
commands =
pytest {posargs}
pytest --junitxml=junit-test-results.xml {posargs}
passenv = WEBTEST_INTERACTIVE
setenv =
WEBTEST_INTERACTIVE=false
Expand Down

0 comments on commit a3313b2

Please sign in to comment.