Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 28 lines (15 sloc) 1.0 kb


library of matchers for building test expressions in Kotlin


Katchers is using Kotlin infix notation to provide a domain specific language (DSL) for expressing assertions in tests using the word should or must. All of the expressions are statically typed so you get full compiler assistance.


1. Import import org.katchers.*

2. Write assertions 1 should be equal 1


Every matcher expression starts with a result we want to validate, followed by should or must, a verb(i.e.: be, have, contain ...), matchfunction(depends on type of result and verb we are using) and expected value(depends on matchfunction).

<result|object> should <verb> <matchfunction> <expected>

Negation of verbs

Every verb can be negated by ! operator

1 should !be equal 2

For more examples see wiki

Jump to Line
Something went wrong with that request. Please try again.