zenspider.com by ryan davis

ZenTest

testing, on steroids.

Products | Download | API Documentation

go red with zentest: generate, measure, audit

1
2
3
4
5
6
7
8
9
#  cls: tst/mth = pct
# A::B: 31 / 21 = 147.62%
#    A:  3 /  4 =  75.00%
 
def thingy
  raise NotImplementedError, 'Need to write thingy'
end
 
# of errors detected: 42

go green with unit_diff: illuminate, focus, fix

1
2
3
4
5
1) Failure:
test_thingy(TestThingy):
4388c1
- expected content
+ bad content

refactor with autotest: automate, accelerate, concentrate

/~ryan/movies/autotest.jpg
Click to see example movie

validate with multiruby: cover, validate, ensure

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
multiruby -e '1 + 2'

VERSION = 1.8.7-p330
CMD     = ~/.multiruby/install/1.8.7-p330/bin/ruby -e 1 + 2


RESULT = 0

VERSION = 1.9.3-p0
CMD     = ~/.multiruby/install/1.9.3-p0/bin/ruby -e 1 + 2


RESULT = 0

TOTAL RESULT = 0 failures out of 2

Passed: 1.9.3-p0, 1.8.7-p330
Failed: