killercup / killercup/cargo-edit

Use fail points to test I/O failures

Open
#321 0 comments 0 reactions 0 assignees View on GitHub
easy enhancement help wanted
Dominant language
Rust
Stars
3.5k
Forks
166
PR merge metrics
No merged PRs in 30d

Description

Just saw the new release of the [fail](https://docs.rs/fail/0.3.0/fail/) crate, which allows easily injecting error scenarios. This lets us write tests that assert we handle these errors in a graceful way, with helpful output.

- [ ] Add fail as an optional dependency
- [ ] Add a fail point and test triggering something like "crates.io couldn't be resolved"
- [ ] Add a fail point and test triggering something like "response from crates.io timed out"

Contributor guide

Open the contributing guide

Research direction

The issue names no files or existing tests. Start by reviewing the dependency configuration and the code paths that contact crates.io, then use the fail crate to exercise resolution and timeout failures. Done means optional fail-point support and tests that verify graceful, helpful output for both scenarios.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.