rust-lang / libtest

Rust's built-in testing and benchmarking framework
Apache License 2.0
60 stars 21 forks source link

Roadmap for json format on Stable #20

Open calebcartwright opened 5 years ago

calebcartwright commented 5 years ago

I think I've got the right repo but please let me know if I need to move this elsewhere 😄

I was just wondering if you have a ballpark timeline/roadmap for when --format json might be available on Stable?

I'm currently interfacing with the test results output (from an IDE extension) and parsing the pretty format, but having json available on stable would make things a lot easier!

Thanks in advance

pragmatrix commented 5 years ago

@calebcartwright Support for --format json can be enabled with adding -Z unstable-options on stable Rust.

calebcartwright commented 5 years ago

Thanks @pragmatrix! My understanding was that using -Z unstable-options still required the nightly toolchain to be installed. Is that incorrect? Can it it still be used in an environment where only stable toolchain has been installed?

pragmatrix commented 5 years ago

@calebcartwright Never thought of that one toolchain could affect another, so I've uninstalled all nightly toolchains and verified that json output goes along with stable on Windows, macOS, and Linux. So yes, it can be used, but I am not sure what the plans for supporting JSON output are; it happened before that unstable features slipped into stable and were removed later on.

calebcartwright commented 5 years ago

Awesome, thanks so much for digging into it @pragmatrix!

I'd still be curious to know if there are any plans to stabilize the json format option if you or anyone else has any insight into that

jhpratt commented 4 years ago

What, if anything, is holding up stabilizing this?