Skip to content

Commit

Permalink
[TST] Show logging output during integration tests (#588)
Browse files Browse the repository at this point in the history
* Log CLI in pytest config.

* Show info-level logging during integration tests.

* Apply suggestions from code review

Co-authored-by: Elizabeth DuPre <[email protected]>

Co-authored-by: Elizabeth DuPre <[email protected]>
  • Loading branch information
tsalo and emdupre authored Aug 7, 2020
1 parent d933592 commit 387db31
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ unittest:
@py.test --skipintegration --cov-append --cov-report term-missing --cov=tedana tedana/

three-echo:
@py.test --cov-append --cov-report term-missing --cov=tedana -k test_integration_three_echo tedana/tests/test_integration.py
@py.test --log-cli-level=INFO --cov-append --cov-report term-missing --cov=tedana -k test_integration_three_echo tedana/tests/test_integration.py

four-echo:
@py.test --cov-append --cov-report term-missing --cov=tedana -k test_integration_four_echo tedana/tests/test_integration.py
@py.test --log-cli-level=INFO --cov-append --cov-report term-missing --cov=tedana -k test_integration_four_echo tedana/tests/test_integration.py

five-echo:
@py.test --cov-append --cov-report term-missing --cov=tedana -k test_integration_five_echo tedana/tests/test_integration.py
@py.test --log-cli-level=INFO --cov-append --cov-report term-missing --cov=tedana -k test_integration_five_echo tedana/tests/test_integration.py

t2smap:
@py.test --cov-append --cov-report term-missing --cov=tedana -k test_integration_t2smap tedana/tests/test_integration.py
@py.test --log-cli-level=INFO --cov-append --cov-report term-missing --cov=tedana -k test_integration_t2smap tedana/tests/test_integration.py
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ exclude=*build/
ignore = E126,E402,W504
per-file-ignores =
*/__init__.py:F401

[tool:pytest]
log_cli = true

0 comments on commit 387db31

Please sign in to comment.