Skip to content

An open definition of equality for more concise and robust tests.

License

Notifications You must be signed in to change notification settings

RutledgePaulV/avow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Clojars Project codecov

avow (verb)

to declare openly, bluntly, and without shame


Rationale

Tests shouldn't break when you make non-breaking code changes. By using a more open definition of equality we can achieve declarative code that focuses on the essence of an assertion and ignores incidentals.


Usage

(require '[avow.core :refer :all])

(def successful-response {:status 200 :body some?})

(deftest http-test
 (is (avow successful-response (http/get "http://my-app:3000"))))

Alternatives

motif

I learned about motif halfway through writing Avow. I decided to write it anyway because I think protocols are a better (open to extension) implementation decision.


License

This project is licensed under MIT license.

About

An open definition of equality for more concise and robust tests.

Resources

License

Stars

Watchers

Forks

Packages

No packages published