about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-01-27 10:56:56 +0000
committerbors <bors@rust-lang.org>2018-01-27 10:56:56 +0000
commit6b99adeb11313197f409b4f7c4083c2ceca8a4fe (patch)
treefa4cadc9518948a7d9f643f55585eb5f2ffa5f40 /src/libstd
parent6272b60dcaae2e69c991fc64cfb2e403c8a616a3 (diff)
parent8b7f1d0cec3884e07e2dd9ea4d0d4faeda5b95ed (diff)
downloadrust-6b99adeb11313197f409b4f7c4083c2ceca8a4fe.tar.gz
rust-6b99adeb11313197f409b4f7c4083c2ceca8a4fe.zip
Auto merge of #46450 - Gilnaa:libtest_json_output, r=nrc
Libtest json output

A revisit to my [last PR](https://github.com/rust-lang/rust/pull/45923).

Events are now more atomic, printed in a flat hierarchy.

For the normal test output:
```
running 1 test
test f ... FAILED

failures:

---- f stdout ----
	thread 'f' panicked at 'assertion failed: `(left == right)`
  left: `3`,
 right: `4`', f.rs:3:1
note: Run with `RUST_BACKTRACE=1` for a backtrace.

failures:
    f

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out
```

The JSON equivalent is:
```
{ "type": "suite", "event": "started", "test_count": "1" }
{ "type": "test", "event": "started", "name": "f" }
{ "type": "test", "event": "failed", "name": "f" }
{ "type": "suite", "event": "failed", "passed": 0, "failed": 1, "allowed_fail": 0, "ignored": 0,  "measured": 0, "filtered_out": "0" }
{ "type": "test_output", "name": "f", "output": "thread 'f' panicked at 'assertion failed: `(left == right)`
  left: `3`,
 right: `4`', f.rs:3:1
note: Run with `RUST_BACKTRACE=1` for a backtrace.
" }
```
Diffstat (limited to 'src/libstd')
0 files changed, 0 insertions, 0 deletions