verbose output confusing, as it shows test passed
See original GitHub issueThe 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:
- Created 4 years ago
- Reactions:1
- Comments:13 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Found the problem: #10. I will finish the PR later and publish a new release.
Thanks everyone!
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!