Skip to content

Commit

Permalink
add fixes for addon to give a full info on skeleton tests
Browse files Browse the repository at this point in the history
  • Loading branch information
loechel committed May 16, 2018
1 parent b1e7356 commit a9d5aa3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ before_script:
- sh -e /etc/init.d/xvfb start

script:
- travis_retry tox
- PYTEST_ADDOPTS="-s -vv" travis_retry tox

after_success:
- coverage combine
Expand Down
16 changes: 11 additions & 5 deletions skeleton-tests/test_addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import glob
import os.path
import pytest
import subprocess


Expand Down Expand Up @@ -106,11 +107,16 @@ def test_addon(tmpdir, capsys, config):
cwd=wd,
)
assert buildout_result == 0
test_result = subprocess.call(
['bin/test'],
cwd=wd,
)
assert test_result == 0
try:
test_result = subprocess.check_output(
['bin/test', '-v'],
cwd=wd,
)
print(test_result)
except subprocess.CalledProcessError as execinfo:
print(execinfo.output)
assert 'failed' in execinfo

test__code_convention_result = subprocess.call(
['bin/code-analysis'],
cwd=wd,
Expand Down

0 comments on commit a9d5aa3

Please sign in to comment.