Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/graysonarts/cargo-smol
A test output summary for small terminal sizes
https://github.com/graysonarts/cargo-smol
Last synced: about 5 hours ago
JSON representation
A test output summary for small terminal sizes
- Host: GitHub
- URL: https://github.com/graysonarts/cargo-smol
- Owner: graysonarts
- Created: 2019-09-08T21:23:51.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-31T01:13:51.000Z (almost 5 years ago)
- Last Synced: 2024-10-05T18:15:58.196Z (about 1 month ago)
- Language: Rust
- Size: 549 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# The smallest test reporter ever
`cargo-smol` takes the output of `cargo test --format json` and formats it into a small area.
_note: `smol` requires `-Z unstable-options` until the json format is stablized._
Typically, `smol` is paired with `watch` so that it gets rerun whenever a file changes. Try this in your project: `cargo watch -x smol`.
If all of your tests are passing, this should show up:
![screenshot of smol in action](https://raw.githubusercontent.com/RussTheAerialist/cargo-smol/master/smol.png)
If you have a test failure, you should see something like this:
![screenshot of smol with a couple of failed test cases](https://raw.githubusercontent.com/RussTheAerialist/cargo-smol/master/smol-fail.png)
`smol` will only show as many test cases as can fit into the size of the window it's in. Any additional tests will not be listed, but will be
included in the test summary status line.## Current Release: v0.1.1
# Technical Details
Something about the way `cargo-watch` works inhibits the ability to switch the terminal into raw mode. Because of this, we cannot have complete
control over the terminal. We do our best, but there are probably bugs.I know a couple of the test cases are currently failing.