question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

verbose output confusing, as it shows test passed

See original GitHub issue

The example given in the readme is kinda weird when passed the -v flag.

(subtest) $ pytest -v test_sub_pytest.py  --tb=no
================= test session starts =================
platform darwin -- Python 3.8.0a1, pytest-4.4.0, py-1.8.0, pluggy-0.9.0 -- 
plugins: subtests-0.1.0
collected 1 item                                      

test_sub_pytest.py::test 
test_sub_pytest.py::test PASSED                 [100%]

========= 2 failed, 1 passed in 0.05 seconds ==========

The double ::test is a bit odd. As is the PASSED. And, well, with 1 test that has 5 subtests, where does the 2 failed 1 passed come from? Specifically, the 1 passed?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
nicoddemuscommented, Apr 4, 2019

Found the problem: #10. I will finish the PR later and publish a new release.

Thanks everyone!

1reaction
nicoddemuscommented, Apr 4, 2019

Indeed, I get the same results on Linux. Weird, no idea why there’s such a difference between Linux and Windows here, I’ll investigate. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Make run-tests.sh show verbose output for failing assertions only
When running tests from the command line, I currently have two options: a) I can pass --verbose, in which case I get a...
Read more >
Using CMake, how do I get verbose output from CTest?
You can check the Testing/Temporary subfolder. It is automatically created after running make test. This folder contains two files: LastTest.
Read more >
prove - Run tests through a TAP harness. - Perldoc Browser
--count Show the X/Y test count when not verbose (default) --nocount ... --normalize Normalize TAP output in verbose output -T Enable tainting checks....
Read more >
ctest(1) — CMake 3.25.1 Documentation
Enable verbose output from tests. Test output is normally suppressed and only summary information is displayed. This option will show all test output....
Read more >
Testing in Go: Failing Tests - Ilija Eftimov ‍
As you can see above, the test returns PASS because there was no test that ... Logf call is on line 6, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found