test-reporter/__tests__/__outputs__/dart-json.md
Michal Dorner 690ec77880
New report rendering with code blocks instead of tables
Previously we listed tests using markdown tables. Each test group had it's own table and textual preface saying how many tests were executed in what time.
This was completely reworked - now tests are listed inside code block. Grouping is achieved using simple indentation. Duration of individual tests is no longer shown - it produced too much "noise" in the report. Pass/Fail check-mark was also moved before name of test suite.
Behavior of "listTests" option was also changed - now if set to failed, it will list all tests, but only if suite is failed. Otherwise test listing is completely omitted.
Last change affects report trimming - if report is still too big after "listTests" is set to "failed" - it will trim report to fit max size and add informational message at the end.
2021-03-31 21:49:53 +02:00

904 B

Tests failed

fixtures/dart-json.json

6 tests were completed in 4s with 1 passed, 4 failed and 1 skipped.

Test suite Passed Failed Skipped Time
test/main_test.dart 1✔️ 3 74ms
test/second_test.dart 1 1✖️ 51ms

test/main_test.dart

Test 1
  ✔️ Passing test
Test 1 Test 1.1
  ❌ Failing test
	Expected: <2>
	  Actual: <1>
	
  ❌ Exception in target unit
	Exception: Some error
Test 2
  ❌ Exception in test
	Exception: Some error

test/second_test.dart

❌ Timeout test
	TimeoutException after 0:00:00.000001: Test timed out after 0 seconds.
✖️ Skipped test