toffee

Crates.iotoffee
lib.rstoffee
version0.5.2
sourcesrc
created_at2020-05-27 08:40:24.76192
updated_at2022-11-11 17:32:40.773995
descriptionGet command to run to run specific test in a file
homepagehttps://github.com/meain/toffee
repositoryhttps://github.com/meain/toffee
max_upload_size
id246594
size44,657
Abin Simon (meain)

documentation

README

toffee

Send in filename and position of any file in any language, toffee returns the command needed to run the nearest test with the proper testing lib. It is a WIP, currently supports python, go and rust.

Usage

This is the main interface that toffee exposes, but this is mostly meant to be used from within your editor. The ideal flow will be use toffee to get the command that you need to run, then use your editor to start a shell or something that runs the actual test.

Examle implementation for Emacs here

Usage: toffee <filename> [<line_no>] [--full]

Get command to run to run specific test in a file

Options:
  --full            run full test suite
  --help            display usage information

Example

$ toffee src/pickers/rust.rs
cargo test pickers::rust

$ toffee src/pickers/rust.rs 83
cargo test pickers::rust::tests::test_simple_find

Install

OS From Command
- crates.io cargo install toffee
macOS homeberw brew install meain/homebrew-meain/toffee
- nix nix-env -iA nur.repos.meain.toffee
Commit count: 38

cargo fmt