• Ed Morley's avatar
    Tests: Make assertCaptured test failures easier to debug (#461) · fedae5ce
    Ed Morley authored
    Previously the contents of the file being searched was not output,
    making it hard to know how to fix a test so that it would pass.
    
    Before:
    ```
    $ make test-heroku-16
    ...
    testCffi
    ASSERT:Expected </tmp/shunit.ayVGAO/tmp/output.6gMs/stdout> to contain <ZZZZZZZ>
    testPylibmc
    ```
    
    After:
    ```
    $ make test-heroku-16
    ...
    testCffi
    ASSERT:Expected </tmp/shunit.FXWeuI/tmp/output.7Vfx/stdout> to contain <ZZZZZZZ>
     !     Warning: Your application is missing a Procfile. This file tells Heroku how to run your application.
     !     Learn more: https://devcenter.heroku.com/articles/procfile
    -----> Installing python-3.6.2
    -----> Installing pip
    -----> Installing requirements with pip
           Collecting cffi (from -r /tmp/testBoLG0/requirements.txt (line 1))
             Downloading cffi-1.10.0-cp36-cp36m-manylinux1_x86_64.whl (406kB)
           Collecting pycparser (from cffi->-r /tmp/testBoLG0/requirements.txt (line 1))
             Downloading pycparser-2.18.tar.gz (245kB)
           Installing collected packages: pycparser, cffi
             Running setup.py install for pycparser: started
               Running setup.py install for pycparser: finished with status 'done'
           Successfully installed cffi-1.10.0 pycparser-2.18
    
    testPylibmc
    ```
    fedae5ce
Name
Last commit
Last update
bin Loading commit data...
builds Loading commit data...
test Loading commit data...
vendor Loading commit data...
.dockerignore Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
Dockerfile Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
NOTICE Loading commit data...
README.md Loading commit data...
requirements.txt Loading commit data...
tests.sh Loading commit data...