Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug - verbose flag doesn't work. #93

Closed
brettswift opened this issue Jul 27, 2018 · 2 comments
Closed

Bug - verbose flag doesn't work. #93

brettswift opened this issue Jul 27, 2018 · 2 comments

Comments

@brettswift
Copy link

This is on OSX, python 2.7.12. zsh

actual

$ ptw -v   
Locating inifile...

[Thu Jul 26 21:09:09 2018] Running: py.test
====================================================== test session starts =======================================================
platform darwin -- Python 2.7.12, pytest-3.6.3, py-1.5.4, pluggy-0.6.0
rootdir: /Users/bswift/src/aws/testproj, inifile: setup.cfg
collected 3 items

tests/unit/steps/test_sample.py ...                                                                                      [100%]

==================================================== 3 passed in 0.07 seconds ====================================================

expected

~
tests/unit/steps/test_sample.py::Testsample::test_codebuild_should_add_stage PASSED
tests/unit/steps/test_sample.py::Testsample::test_pipeline_has_two_stages PASSED
tests/unit/steps/test_sample.py::Testsample::test_pipeline_records_metadata PASSED

==================================================== 3 passed in 0.07 seconds ====================================================

@rib3
Copy link

rib3 commented Aug 21, 2018

Based on expected output, I believe you want to pass -v to pytest by putting it after -- in the arguments list.

Arguments before -- are used by pytest-watch, arguments after are passed along to pytest.

ptw -- -v

Example with "double verbose" (full diffs) and "exit on first error"
(pytest-watch itself does not have an -x argument, and does not appear to support multiple verbose flags. pytest supports both)

ptw -- -vvx

@joeyespo
Copy link
Owner

Thanks for jumping in, @rib3! 😃

That should get what you need, @brettswift. Feel free to re-open if you meant something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants