specd - write more expressive unit tests
jostly
johan.f.ostling at gmail.com
Mon Sep 2 12:03:28 PDT 2013
specd is a DSL library allowing you to write more expressive unit
tests. It is inspired by projects like specs2 and ScalaTest from
the Scala world.
Example:
unittest {
describe("a string")
.should("have a length property",
"foo".length.must.equal(3));
}
Features:
* DSL for expressing unit tests as specifications
* Verify with "must" instead of assert
* Report successful / failed tests using green / red paradigm
Available as a dub dependency ("specd") or from
https://github.com/jostly/specd
Comments and suggestions for improvement are welcome!
//Johan
More information about the Digitalmars-d-announce
mailing list