Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upIs it possible to get cargo's output as json? #1403
Comments
This comment has been minimized.
This comment has been minimized.
|
Unfortunately no, this aspect of Cargo has not yet been implemented. Cargo is planned to have more tooling support with nice machine-readable output formats (like JSON or TOML). For test results, however, that would be a problem more of the testing framework than Cargo itself, so it may not necessarily be up to Cargo to do so. |
alexcrichton
added
the
A-tooling
label
Mar 10, 2015
This comment has been minimized.
This comment has been minimized.
|
What is the testing framework that cargo runs when you use |
This comment has been minimized.
This comment has been minimized.
|
Currently it's libtest in the standard distribution. |
This comment has been minimized.
This comment has been minimized.
|
And we removed it fairly recently in an effort to streamline the runner, since we didn't want to stabilize it. |
This comment has been minimized.
This comment has been minimized.
|
since rustc can now output json, at least |
bruno-medeiros
referenced this issue
Mar 22, 2016
Closed
Build subcommand or option that builds all targets (including tests) #2495
This comment has been minimized.
This comment has been minimized.
|
Can |
This comment has been minimized.
This comment has been minimized.
|
No, it can't: rust-lang/rust#37011 |
This comment has been minimized.
This comment has been minimized.
|
With |
alexcrichton
closed this
Dec 29, 2016
This comment has been minimized.
This comment has been minimized.
aergonaut
commented
May 18, 2017
|
Sorry to necropost, but I figured this issue was a good place to bring up this point than creating a new one. Are there plans to add JSON output for My motivation is that I want to build a Nuclide test runner provider for Atom, and it would be a lot easier to parse test results if they were output in JSON. |
This comment has been minimized.
This comment has been minimized.
|
@aergonaut ah the test framework (src/libtest/lib.rs in the rust-lang/rust repository) is actually somewhat separate from the current implementation of |
This comment has been minimized.
This comment has been minimized.
aergonaut
commented
May 19, 2017
|
Thanks for the reply @alexcrichton. I'll look forward to hopefully seeing that RFC make progress in the future |
sbstp commentedMar 10, 2015
I'd like to integrate cargo into Atom (the text editor) and I was wondering if it is possible to get the commands' result as json. I'd like to be able to get errors and their line number from
cargo buildas well as test results fromcargo test.