This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit cb15bb95abbaf7cbbd2fd73e85a2874b999bd606
tree 5df81a3897ce2f3773fc58fff82489113642b820
parent 84e8f307bcb5e0666f6a35a4f6fd2e7aa61b5e28
tree 5df81a3897ce2f3773fc58fff82489113642b820
parent 84e8f307bcb5e0666f6a35a4f6fd2e7aa61b5e28
mtest /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
README | ||
| |
Rakefile | ||
| |
VERSION | ||
| |
lib/ | ||
| |
mtest.gemspec |
README
‘‘ MTest ’’
MTest (stands for MicroTest) is a tiny and fast TDD framework.
It provides the Kernel#MTest method that takes an array of test as a parameter.
Need an example? Right.
require 'mtest'
tests = [
"This is a simple test",
["Sum 40+2", proc {
40 + 2
}, 42]
]
MTest(tests)
MTests returns a hash that represents the results of a test. Example!
tests = [
"This is a simple test",
["Sum 40+2", proc { 40 + 2 }, 42],
"This one fails",
["FAIL", proc { true }, false]
]
res = MTest(tests)
res # => {:pass => 1, :err => 0, :fail => 1}
** Contributing **
Everyone is welcome to contribute to MTest. The only restriction is that
mtest.rb must be less than 51 lines long.
But feel free to submit your own tools, examples, hacks, etc.








