Skip to content

Mac Beyond Compare path in reporters.json doesn't match actual install location #235

@LarsEckart

Description

@LarsEckart

In java, it usually spawns Beyond Compare for me when tests are failing. But in Pyhton, i noticed it opens Araxis Merge first (which I have installed but no license for it).

  1. do you have a different order and do you want it to differ compared to java?
  2. the path you have for the beyond compare mac reporter, at least on my machine, isn't setup like this.

Below you find what Claude Opus was thinking is going on.

Problem

reporters.json has an incorrect path for Beyond Compare on Mac:

["BeyondCompare4Mac", "/usr/local/bin/bcompare"]

But Beyond Compare installs to:

/Applications/Beyond Compare.app/Contents/MacOS/bcomp

The programmatic ReportWithBeyondCompareMac class has the correct path, but reporters.json is checked first, so Beyond Compare is never found and other reporters (like Araxis Merge) take priority.

How Java handles this

ApprovalTests.Java has a single source of truth in DiffPrograms.java:

public static DiffInfo BEYOND_COMPARE = new DiffInfo(
    "/Applications/Beyond Compare.app/Contents/MacOS/bcomp", TEXT);

Suggested fix

Update reporters.json:

["BeyondCompare4Mac", "/Applications/Beyond Compare.app/Contents/MacOS/bcomp"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions