rover-cli

A coding exercise in controlling a set of rovers on mars.



🛠 Installation

sh cargo install rover-cli

🔋 Usage

Print output to console:

sh rover-cli foo.txt

Save output to file: sh rover-cli --output output.txt foo.txt

To see helpful information:

sh rover-cli --help

💭 Code Choices

🔬 Testing

To run tests for the CLI:

sh cargo test

Testing Approach

Unit tests that cover basic functionality and possible branches are included, however as this is a coding exercise, 100% coverage has not been aimed for.

Generate Coverage Report

Setup

sh rustup component add llvm-tools-preview && cargo install cargo-llvm-cov

Usage

To create a coverage report:

sh cargo llvm-cov

To debug a coverage report:

sh cargo llvm-cov --html --output-dir coverage