We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What kind of issue is this?
MacOS, PIO 6.0.2
A failed test using DocTest reports as follows when running pio test:
pio test
================ 1 test cases: 1 failed, 0 succeeded in 00:00:02.240 ================
Whereas it reports this when running pio test -v:
pio test -v
----------------- native:test_test_dummy [PASSED] Took 0.34 seconds -----------------
main()
TEST_CASE("smoke") { CHECK(42 == 40 + 1); }
Part of my confusion may also come from the amount of output, which appears to report the failed check twice:
$ pio test Verbosity level can be increased via `-v, -vv, or -vvv` option Collected 1 tests Processing test_test_dummy in native environment ------------------------------------------------------------------------------------- Building... Testing... test/test_test_dummy/test_main.cpp:7: smoke: CHECK( 42 == 40 + 1 ) is NOT correct! [FAILED] ----------------- native:test_test_dummy [FAILED] Took 0.35 seconds ----------------- ====================================== SUMMARY ====================================== Environment Test Status Duration ------------- --------------- -------- ------------ native test_test_dummy FAILED 00:00:00.353 ______________________________ native:test_test_dummy ______________________________ test/test_test_dummy/test_main.cpp:7: TEST CASE: smoke test/test_test_dummy/test_main.cpp:8: ERROR: CHECK( 42 == 40 + 1 ) is NOT correct! values: CHECK( 42 == 41 ) ================ 1 test cases: 1 failed, 0 succeeded in 00:00:00.353 ================ $
And here's in verbose mode:
$ pio test -v Collected 1 tests (test_test_dummy) Processing test_test_dummy in native environment ------------------------------------------------------------------------------------- Building... Testing... [doctest] doctest version is "2.4.9" [doctest] run with "--help" for options =============================================================================== test/test_test_dummy/test_main.cpp:7: TEST CASE: smoke test/test_test_dummy/test_main.cpp:8: ERROR: CHECK( 42 == 40 + 1 ) is NOT correct! values: CHECK( 42 == 41 ) =============================================================================== [doctest] test cases: 1 | 0 passed | 1 failed | 0 skipped [doctest] assertions: 1 | 0 passed | 1 failed | [doctest] Status: FAILURE! ----------------- native:test_test_dummy [PASSED] Took 0.35 seconds ----------------- ====================================== SUMMARY ====================================== Environment Test Status Duration ------------- --------------- -------- ------------ native test_test_dummy SKIPPED 00:00:00.350 ===================== 0 test cases: 0 succeeded in 00:00:00.350 ===================== $
Note: I also have doctest 2.4.9 installed via Homebrew, which appears to override the 2.4.8 installed by PIO.
The text was updated successfully, but these errors were encountered:
32e440b
Thanks for the report. Please re-test with pio upgrade --dev.
pio upgrade --dev
Does it work now?
Sorry, something went wrong.
No branches or pull requests
What kind of issue is this?
If you’ve found a bug, please provide an information below.
Configuration
MacOS, PIO 6.0.2
Description of problem
A failed test using DocTest reports as follows when running
pio test
:Whereas it reports this when running
pio test -v
:Steps to Reproduce
main()
:Additional info
Part of my confusion may also come from the amount of output, which appears to report the failed check twice:
And here's in verbose mode:
Note: I also have doctest 2.4.9 installed via Homebrew, which appears to override the 2.4.8 installed by PIO.
The text was updated successfully, but these errors were encountered: