libtest icon indicating copy to clipboard operation
libtest copied to clipboard

Support json format for --list

Open dzfranklin opened this issue 4 years ago • 0 comments

I'd like to be able to get a json-formatted list of the tests and benches. This isn't a huge deal, because the output is pretty simple to parse with regex.

Expected:

> test_binary -Z unstable-options --list --format json
[{name: "foo", type: "test"}]

Actual:

> test_binary -Z unstable-options --list --format json
foo: test

1 test, 0 benchmarks

dzfranklin avatar May 17 '21 14:05 dzfranklin