Skip to content

Docs: add browsertrace compare expected-output example #371

Closed

Description

@aaronlab

Context

browsertrace compare <failed_run_id> <success_run_id> is now available in v0.1.19. The README and Browser Use guide explain the command, but first-time users still need a tiny expected-output example so they know what a useful comparison result looks like.

Scope

Keep this docs-only and small. Suggested files:

  • examples/README.md
  • tests/test_metadata.py

Avoid generated release assets, broad README rewrites, UI changes, or launch copy changes.

Acceptance criteria

  • Add a short browsertrace compare <failed_run_id> <success_run_id> expected-output example to examples/README.md.
  • The example should show the first divergent step and at least one of these fields: action, url, status, or error.
  • Mention that --json is available for automation, but do not paste a large JSON blob.
  • Add or update a metadata test so this expected-output example stays documented.
  • Do not add requests for stars, upvotes, reposts, or reciprocal promotion.

Verification

Run:

uv run --python 3.11 --extra dev pytest tests/test_metadata.py -q

A good first PR can follow the First PR Recipe:
https://github.com/aaronlab/browsertrace/blob/main/CONTRIBUTING.md#first-pr-recipe

Activity

  1. added
    documentation
    help wanted
    good first issue
    launch-feedback
    on May 12, 2026
  2. aaronlab commented on May 13, 2026

    @aaronlab
    OwnerAuthor

    Suggested example shape for whoever picks this up:

    $ browsertrace compare failed-local-html-upload good-local-html-upload
    First divergent step: 3
    
    failed:
      action: navigate
      url: file:///tmp/browsertrace-report.html
      status: failed
      error: upload preview did not appear
    
    good:
      action: upload_file
      url: https://example.test/upload
      status: ok
    

    The exact run ids and wording can be adjusted to match the surrounding examples. Please keep the docs change small, mention that --json is available for automation, and avoid adding a large JSON blob to the README.

    Useful verification:

    uv run --python 3.11 --extra dev pytest tests/test_metadata.py -q
    git diff --check
  3. pinned this issue on May 13, 2026
  4. unpinned this issue on May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationgood first issuehelp wantedlaunch-feedback

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions