BD103 / BD103/migrate_rustdoc_json

Track caller in migration tests

Open Beginner friendly
#20 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Whenever a migration test fails, it gives the location `tests/harness/mod.rs:141:17`. This location isn't useful, as it's not where the migration test is defined. We should use [`std::panic::Location`](https://doc.rust-lang.org/stable/std/panic/struct.Location.html) and `#[track_caller]` to emit a useful location.

Contributor guide

Open the contributing guide

Research direction

Read tests/harness/mod.rs around line 141 and inspect how migration test failures report their location. Start with std::panic::Location and #[track_caller], then run the migration tests to verify failures point to the migration test definition rather than the harness.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.