forked from etscrivner/lemon
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
50 lines (27 loc) · 1.05 KB
/
README
File metadata and controls
50 lines (27 loc) · 1.05 KB
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
~ lemon ~
lemon is a tiny, fast unit-testing framework designed to take almost no time
to set up.
~ philosophy ~
lemon is designed to be small, really small. That way you can worry less
about setting up the framework and more about writing tests.
~ installation ~
Just add lemon.h to your project or place it in a common directory for your
compiler (On Linux/Mac/Unix this might be /usr/local/include).
~ a not-so-bitter taste of lemon ~
To start writing tests in lemon:
1) initialize lemon
lemon::test<> lemon(num_tests_which_you_plan_to_run);
2) conduct tests
lemon.is(this_one_equal_to, that_one, descriptive_test_name);
3) display results
lemon.done();
~ assertions ~
lemon provides a minimal but complete set of assertions:
* ok(boolean_condition, descriptive_test_name)
* not_ok(boolean_condition, descriptive_test_name)
* is(this_one, that_one, descriptive_test_name)
* isnt(this_one, that_one, descriptive_test_name)
* pass(descriptive_test_name)
* fail(descriptive_test_name)
* skip(reason, num_to_skip)
* todo(what)