-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAnnouncements.txt
72 lines (58 loc) · 2.6 KB
/
Announcements.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
2012-01-27 ruby-talk
Whitestone 1.0.1, a unit testing library, was released on 2012-01-02. This
update, 1.0.2, improves the implementation of float-equality testing,
especially regarding numbers near zero. As it stands, floats are considered
equal if their 14th significant figure is off by one. There is no provision
for specifying a tolerance: it is supposed to just work, and if it doesn't
then it's a bug.
Key features of Whitestone include terse testing code, colorful and
helpful output, custom assertions, a powerful and intuitive test
runner, simple debugger integration. The homepage explains and
demonstrates it well.
Here are the assertion methods:
T -- assert true
F -- assert false
N -- assert object is nil
Eq -- assert two objects are equal
Mt -- assert string matches regular expression
Id -- assert two objects are identical (same object)
E -- assert error is raised
Ko -- assert an object is kind_of a class/module
Ft -- assert two floats are essentially equal
C -- assert object is thrown
Homepage: http://gsinclair.github.com/whitestone.html
Code: http://github.com/gsinclair/whitestone
Licence: MIT
Regards,
Gavin
-------------------------------------------------------------------------------
2012-01-02 ruby-talk
Hi all,
A long time ago, I imagined my ideal unit testing library. In the middle of
2010, I created it (using Suraj N Karaputi's "dfect" v2.1.0 as a starting point)
and called it "attest", but never got around to releasing it. Well now I have.
Except the name "attest" is taken, so I renamed it "whitestone": it's the nicest
sounding word in /usr/share/dict/words containing the word "test".
It's not going to take over the testing world, but it's what keeps my Ruby
projects in line. If you're interested in testing libraries, you'll find it
worth a look. Note: "test" not "spec". And there's no mocks, stubs, etc.
either. I'm not knocking those things, but they haven't been necessary for my
projects.
Here are the assertion methods:
T -- assert true
F -- assert false
N -- assert object is nil
Eq -- assert two objects are equal
Mt -- assert string matches regular expression
Id -- assert two objects are identical (same object)
E -- assert error is raised
Ko -- assert an object is kind_of a class/module
Ft -- assert two floats are essentially equal
C -- assert object is thrown
Key features include terse code, colorful and helpful output, custom assertions,
a powerful and intuitive test runner, simple debugger integration.
Homepage: http://gsinclair.github.com/whitestone.html
Code: http://github.com/gsinclair/whitestone
Licence: MIT
Regards,
Gavin