Show HN: RealDiff – runtime behavior diffing for pull requests (six languages)
1–10 of 14 posts
Re: Show HN: RealDiff – runtime behavior diffing for pull requests (six languages)
#2Re: Show HN: RealDiff – runtime behavior diffing for pull requests (six languages)
#3I’ve read the readme a few times and still have no idea how this is useful. The motivating example of Sort => SortBy has no description of what’s highlighted and no description of how. Is it running the old test suite with the new changes as a weak form of mutation testing? Something else?
Re: Show HN: RealDiff – runtime behavior diffing for pull requests (six languages)
#4I’ve read the readme a few times and still have no idea how this is useful. The motivating example of Sort => SortBy has no description of what’s highlighted and no description of how. Is it running the old test suite with the new changes as a weak form of mutation testing? Something else?
Re: Show HN: RealDiff – runtime behavior diffing for pull requests (six languages)
#5I’ve read the readme a few times and still have no idea how this is useful. The motivating example of Sort => SortBy has no description of what’s highlighted and no description of how. Is it running the old test suite with the new changes as a weak form of mutation testing? Something else?
Not mutation testing — nothing is mutated. It builds both branches with instrumentation, runs the same test suite on each, and diffs the recorded arguments and return values. In that example, selectDiscount returns a different discount and the order total goes 85 → 60. Neither function is in the diff; only the sort helper is. The tests still pass — one asserts the total is positive, and 60 is positive.
Re: Show HN: RealDiff – runtime behavior diffing for pull requests (six languages)
#6Earlier quoted context omitted.
Not mutation testing — nothing is mutated. It builds both branches with instrumentation, runs the same test suite on each, and diffs the recorded arguments and return values. In that example, selectDiscount returns a different discount and the order total goes 85 → 60. Neither function is in the diff; only the sort helper is. The tests still pass — one asserts the total is positive, and 60 is positive.
Don’t run your responses through an LLM. People prefer to read your genuine words, even if it may include some incorrect English.
Re: Show HN: RealDiff – runtime behavior diffing for pull requests (six languages)
#7Re: Show HN: RealDiff – runtime behavior diffing for pull requests (six languages)
#8Re: Show HN: RealDiff – runtime behavior diffing for pull requests (six languages)
#9No support for Zig?
Re: Show HN: RealDiff – runtime behavior diffing for pull requests (six languages)
#10I’ve read the readme a few times and still have no idea how this is useful. The motivating example of Sort => SortBy has no description of what’s highlighted and no description of how. Is it running the old test suite with the new changes as a weak form of mutation testing? Something else?
Not mutation testing — nothing is mutated. It builds both branches with instrumentation, runs the same test suite on each, and diffs the recorded arguments and return values. In that example, selectDiscount returns a different discount and the order total goes 85 → 60. Neither function is in the diff; only the sort helper is. The tests still pass — one asserts the total is positive, and 60 is positive.