Skip to content

bradcypert/Skeptic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

skeptic

Given-When style testing for Clojure.

Tests are one of the best forms of code documentation, but are often hard to read or even comprehend. Structuring your tests as documentation gives you the best of both worlds.

Build Status CodeFactor

Usage

(suite “Users should be able to”
  (test “get a localized version of their name”     
    :given [user (->User “Brad” “Cypert”)]
    :when (get-localized-name user)
    :expect “Brad Cypert”))

(suite “Tests about the number 4”
  (test4 should always equal 4:expect (= 4 4))

  (test “Given A is 4, a should equal 4:given [a 4]
    :expect (= a 4)))

License

Copyright © 2018 Brad Cypert EPL

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •