Show diff for large objects

Open
#64 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale

Research direction

Start by locating the assertion and error-reporting code in the rules_testing repository; the issue does not name a file or test. Reproduce comparisons involving a large string and a large collection, then verify that failures show a readable diff highlighting differences between expected and actual values.

Written by the indexing model from the issue text.

Description

enhancement

When large objects are compared, it makes the resulting errors hard to visually see what the differences are. This occurs with both large strings (e.g. generated BUILD file content for repository rule utilties) and large collections (e.g. the argv of a cc link command).

A diff would help draw attention to the parts of the expects vs actual that actually differ.

Dominant language
Starlark
Stars
29
Forks
11
Avg merge
15h 15m
Merged PRs (30d)
3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bazelbuild/rules_testing

All issues in bazelbuild/rules_testing

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.