Skip to content

Commit

Permalink
ci: PYTEST_ADDOPTS=-vv in general
Browse files Browse the repository at this point in the history
This is useful when viewing logs, especially with hanging tests.

Uses non-verbose mode with a single job for full coverage.
  • Loading branch information
blueyed committed Mar 18, 2019
1 parent 5d14362 commit 263cb2e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ stages:
if: repo = pytest-dev/pytest AND tag IS NOT present
- name: deploy
if: repo = pytest-dev/pytest AND tag IS present
python:
- '3.7'
python: '3.7'
cache: false

env:
global:
- PYTEST_ADDOPTS=-vv

install:
- python -m pip install --upgrade --pre tox

Expand Down Expand Up @@ -57,7 +62,8 @@ jobs:
# - pytester's LsofFdLeakChecker
# - TestArgComplete (linux only)
# - numpy
- env: TOXENV=py37-lsof-numpy-xdist PYTEST_COVERAGE=1
# Empty PYTEST_ADDOPTS to run this non-verbose.
- env: TOXENV=py37-lsof-numpy-xdist PYTEST_COVERAGE=1 PYTEST_ADDOPTS=

# Specialized factors for py27.
- env: TOXENV=py27-nobyte-numpy-xdist
Expand Down Expand Up @@ -147,4 +153,3 @@ notifications:
skip_join: true
email:
- [email protected]
cache: false
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ trigger:
- features

variables:
PYTEST_ADDOPTS: "--junitxml=build/test-results/$(tox.env).xml"
PYTEST_ADDOPTS: "--junitxml=build/test-results/$(tox.env).xml -vv"
python.needs_vc: False
python.exe: "python"
COVERAGE_FILE: "$(Build.Repository.LocalPath)/.coverage"
Expand Down

0 comments on commit 263cb2e

Please sign in to comment.