Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Tools for side-by-side diffing of Clojure data structures and clojure.test failures
Clojure
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/gui
test/gui/test
.gitignore
.travis.yml
README.md
gui-diff-screenshot.png
project.clj

README.md

Visually diff Clojure data structures

Works with Mac out of the box, and with Linux using Meld or xterm diff.

Usage:

To include as a project dependency using Leiningen: [gui-diff "0.6.2"]

Travis CI Status

Build Status

Examples

(require '[gui.diff :refer :all])

;; popup a visual diff of any two data structures
(gui-diff {:a 10 :b 20 :c 30} {:a 10 :c 98 :d 34})

Gui-diff Screenshot

;; wrap any code that sends failure information to clojure.test's *test-out*
;; using `with-gui-diff`

(with-gui-diff (my-custom-test-runner))
;; use gui-diff's clojure.test wrappers that will popup a visual diff
;; failure report if any test fails
(run-tests++ 'mylibrary.core-test)
(run-all-tests++ #".*integration.*")

Override the diff tool

You can specify your own diff tool by setting the DIFFTOOL environment variable.

$ DIFFTOOL=kdiff3 lein repl

License

MIT License

Contributors

Something went wrong with that request. Please try again.