lemon 0.6 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY +32 -1
- data/LICENSE +22 -0
- data/README.rdoc +30 -34
- data/lib/lemon/command.rb +16 -39
- data/lib/lemon/command/abstract.rb +29 -0
- data/lib/lemon/{commands → command}/coverage.rb +13 -14
- data/lib/lemon/{commands → command}/generate.rb +35 -19
- data/lib/lemon/{commands → command}/test.rb +34 -13
- data/lib/lemon/coverage.rb +175 -65
- data/lib/lemon/dsl.rb +15 -2
- data/lib/lemon/kernel.rb +16 -12
- data/lib/lemon/reporter.rb +17 -47
- data/lib/lemon/reporter/abstract.rb +92 -0
- data/lib/lemon/{reporters → reporter}/dotprogress.rb +5 -7
- data/lib/lemon/reporter/outline.rb +105 -0
- data/lib/lemon/reporter/verbose.rb +127 -0
- data/lib/lemon/runner.rb +195 -12
- data/lib/lemon/snapshot.rb +185 -0
- data/lib/lemon/test/case.rb +33 -11
- data/lib/lemon/test/concern.rb +10 -1
- data/lib/lemon/test/suite.rb +128 -22
- data/lib/lemon/test/unit.rb +43 -7
- data/meta/{author → authors} +0 -0
- data/meta/version +1 -1
- data/test/{cases/coverage_case.rb → coverage_case.rb} +4 -6
- data/test/{cases/testcase_case.rb → testcase_case.rb} +1 -1
- metadata +33 -31
- data/COPYING +0 -621
- data/COPYING.LESSER +0 -166
- data/MANIFEST +0 -43
- data/Syckfile +0 -68
- data/lib/lemon/reporters.rb +0 -3
- data/lib/lemon/reporters/verbose.rb +0 -92
data/COPYING.LESSER
DELETED
@@ -1,166 +0,0 @@
|
|
1
|
-
= GNU LESSER GENERAL PUBLIC LICENSE
|
2
|
-
|
3
|
-
Version 3, 29 June 2007
|
4
|
-
|
5
|
-
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
6
|
-
Everyone is permitted to copy and distribute verbatim copies
|
7
|
-
of this license document, but changing it is not allowed.
|
8
|
-
|
9
|
-
This version of the GNU Lesser General Public License incorporates
|
10
|
-
the terms and conditions of version 3 of the GNU General Public
|
11
|
-
License, supplemented by the additional permissions listed below.
|
12
|
-
|
13
|
-
== 0. Additional Definitions.
|
14
|
-
|
15
|
-
As used herein, "this License" refers to version 3 of the GNU Lesser
|
16
|
-
General Public License, and the "GNU GPL" refers to version 3 of the
|
17
|
-
GNU General Public License.
|
18
|
-
|
19
|
-
"The Library" refers to a covered work governed by this License,
|
20
|
-
other than an Application or a Combined Work as defined below.
|
21
|
-
|
22
|
-
An "Application" is any work that makes use of an interface provided
|
23
|
-
by the Library, but which is not otherwise based on the Library.
|
24
|
-
Defining a subclass of a class defined by the Library is deemed a mode
|
25
|
-
of using an interface provided by the Library.
|
26
|
-
|
27
|
-
A "Combined Work" is a work produced by combining or linking an
|
28
|
-
Application with the Library. The particular version of the Library
|
29
|
-
with which the Combined Work was made is also called the "Linked
|
30
|
-
Version".
|
31
|
-
|
32
|
-
The "Minimal Corresponding Source" for a Combined Work means the
|
33
|
-
Corresponding Source for the Combined Work, excluding any source code
|
34
|
-
for portions of the Combined Work that, considered in isolation, are
|
35
|
-
based on the Application, and not on the Linked Version.
|
36
|
-
|
37
|
-
The "Corresponding Application Code" for a Combined Work means the
|
38
|
-
object code and/or source code for the Application, including any data
|
39
|
-
and utility programs needed for reproducing the Combined Work from the
|
40
|
-
Application, but excluding the System Libraries of the Combined Work.
|
41
|
-
|
42
|
-
== 1. Exception to Section 3 of the GNU GPL.
|
43
|
-
|
44
|
-
You may convey a covered work under sections 3 and 4 of this License
|
45
|
-
without being bound by section 3 of the GNU GPL.
|
46
|
-
|
47
|
-
== 2. Conveying Modified Versions.
|
48
|
-
|
49
|
-
If you modify a copy of the Library, and, in your modifications, a
|
50
|
-
facility refers to a function or data to be supplied by an Application
|
51
|
-
that uses the facility (other than as an argument passed when the
|
52
|
-
facility is invoked), then you may convey a copy of the modified
|
53
|
-
version:
|
54
|
-
|
55
|
-
a) under this License, provided that you make a good faith effort to
|
56
|
-
ensure that, in the event an Application does not supply the
|
57
|
-
function or data, the facility still operates, and performs
|
58
|
-
whatever part of its purpose remains meaningful, or
|
59
|
-
|
60
|
-
b) under the GNU GPL, with none of the additional permissions of
|
61
|
-
this License applicable to that copy.
|
62
|
-
|
63
|
-
== 3. Object Code Incorporating Material from Library Header Files.
|
64
|
-
|
65
|
-
The object code form of an Application may incorporate material from
|
66
|
-
a header file that is part of the Library. You may convey such object
|
67
|
-
code under terms of your choice, provided that, if the incorporated
|
68
|
-
material is not limited to numerical parameters, data structure
|
69
|
-
layouts and accessors, or small macros, inline functions and templates
|
70
|
-
(ten or fewer lines in length), you do both of the following:
|
71
|
-
|
72
|
-
a) Give prominent notice with each copy of the object code that the
|
73
|
-
Library is used in it and that the Library and its use are
|
74
|
-
covered by this License.
|
75
|
-
|
76
|
-
b) Accompany the object code with a copy of the GNU GPL and this
|
77
|
-
license document.
|
78
|
-
|
79
|
-
== 4. Combined Works.
|
80
|
-
|
81
|
-
You may convey a Combined Work under terms of your choice that,
|
82
|
-
taken together, effectively do not restrict modification of the
|
83
|
-
portions of the Library contained in the Combined Work and reverse
|
84
|
-
engineering for debugging such modifications, if you also do each of
|
85
|
-
the following:
|
86
|
-
|
87
|
-
a) Give prominent notice with each copy of the Combined Work that
|
88
|
-
the Library is used in it and that the Library and its use are
|
89
|
-
covered by this License.
|
90
|
-
|
91
|
-
b) Accompany the Combined Work with a copy of the GNU GPL and this
|
92
|
-
license document.
|
93
|
-
|
94
|
-
c) For a Combined Work that displays copyright notices during
|
95
|
-
execution, include the copyright notice for the Library among
|
96
|
-
these notices, as well as a reference directing the user to the
|
97
|
-
copies of the GNU GPL and this license document.
|
98
|
-
|
99
|
-
d) Do one of the following:
|
100
|
-
|
101
|
-
d.0) Convey the Minimal Corresponding Source under the terms of
|
102
|
-
this License, and the Corresponding Application Code in a form
|
103
|
-
suitable for, and under terms that permit, the user to
|
104
|
-
recombine or relink the Application with a modified version of
|
105
|
-
the Linked Version to produce a modified Combined Work, in the
|
106
|
-
manner specified by section 6 of the GNU GPL for conveying
|
107
|
-
Corresponding Source.
|
108
|
-
|
109
|
-
d.1) Use a suitable shared library mechanism for linking with the
|
110
|
-
Library. A suitable mechanism is one that (a) uses at run time
|
111
|
-
a copy of the Library already present on the user's computer
|
112
|
-
system, and (b) will operate properly with a modified version
|
113
|
-
of the Library that is interface-compatible with the Linked
|
114
|
-
Version.
|
115
|
-
|
116
|
-
e) Provide Installation Information, but only if you would otherwise
|
117
|
-
be required to provide such information under section 6 of the
|
118
|
-
GNU GPL, and only to the extent that such information is
|
119
|
-
necessary to install and execute a modified version of the
|
120
|
-
Combined Work produced by recombining or relinking the
|
121
|
-
Application with a modified version of the Linked Version. (If
|
122
|
-
you use option 4d0, the Installation Information must accompany
|
123
|
-
the Minimal Corresponding Source and Corresponding Application
|
124
|
-
Code. If you use option 4d1, you must provide the Installation
|
125
|
-
Information in the manner specified by section 6 of the GNU GPL
|
126
|
-
for conveying Corresponding Source.)
|
127
|
-
|
128
|
-
== 5. Combined Libraries.
|
129
|
-
|
130
|
-
You may place library facilities that are a work based on the
|
131
|
-
Library side by side in a single library together with other library
|
132
|
-
facilities that are not Applications and are not covered by this
|
133
|
-
License, and convey such a combined library under terms of your
|
134
|
-
choice, if you do both of the following:
|
135
|
-
|
136
|
-
a) Accompany the combined library with a copy of the same work based
|
137
|
-
on the Library, uncombined with any other library facilities,
|
138
|
-
conveyed under the terms of this License.
|
139
|
-
|
140
|
-
b) Give prominent notice with the combined library that part of it
|
141
|
-
is a work based on the Library, and explaining where to find the
|
142
|
-
accompanying uncombined form of the same work.
|
143
|
-
|
144
|
-
== 6. Revised Versions of the GNU Lesser General Public License.
|
145
|
-
|
146
|
-
The Free Software Foundation may publish revised and/or new versions
|
147
|
-
of the GNU Lesser General Public License from time to time. Such new
|
148
|
-
versions will be similar in spirit to the present version, but may
|
149
|
-
differ in detail to address new problems or concerns.
|
150
|
-
|
151
|
-
Each version is given a distinguishing version number. If the
|
152
|
-
Library as you received it specifies that a certain numbered version
|
153
|
-
of the GNU Lesser General Public License "or any later version"
|
154
|
-
applies to it, you have the option of following the terms and
|
155
|
-
conditions either of that published version or of any later version
|
156
|
-
published by the Free Software Foundation. If the Library as you
|
157
|
-
received it does not specify a version number of the GNU Lesser
|
158
|
-
General Public License, you may choose any version of the GNU Lesser
|
159
|
-
General Public License ever published by the Free Software Foundation.
|
160
|
-
|
161
|
-
If the Library as you received it specifies that a proxy can decide
|
162
|
-
whether future versions of the GNU Lesser General Public License shall
|
163
|
-
apply, that proxy's public statement of acceptance of any version is
|
164
|
-
permanent authorization for you to choose that version for the
|
165
|
-
Library.
|
166
|
-
|
data/MANIFEST
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
COPYING
|
2
|
-
COPYING.LESSER
|
3
|
-
HISTORY
|
4
|
-
MANIFEST
|
5
|
-
README.rdoc
|
6
|
-
bin/lemon
|
7
|
-
lib/lemon
|
8
|
-
lib/lemon.rb
|
9
|
-
lib/lemon/command.rb
|
10
|
-
lib/lemon/commands
|
11
|
-
lib/lemon/commands/coverage.rb
|
12
|
-
lib/lemon/commands/generate.rb
|
13
|
-
lib/lemon/commands/test.rb
|
14
|
-
lib/lemon/coverage.rb
|
15
|
-
lib/lemon/dsl.rb
|
16
|
-
lib/lemon/kernel.rb
|
17
|
-
lib/lemon/reporter.rb
|
18
|
-
lib/lemon/reporters
|
19
|
-
lib/lemon/reporters.rb
|
20
|
-
lib/lemon/reporters/dotprogress.rb
|
21
|
-
lib/lemon/reporters/verbose.rb
|
22
|
-
lib/lemon/runner.rb
|
23
|
-
lib/lemon/test
|
24
|
-
lib/lemon/test/case.rb
|
25
|
-
lib/lemon/test/concern.rb
|
26
|
-
lib/lemon/test/suite.rb
|
27
|
-
lib/lemon/test/unit.rb
|
28
|
-
meta/author
|
29
|
-
meta/contact
|
30
|
-
meta/copyright
|
31
|
-
meta/description
|
32
|
-
meta/homepage
|
33
|
-
meta/license
|
34
|
-
meta/name
|
35
|
-
meta/repository
|
36
|
-
meta/suite
|
37
|
-
meta/summary
|
38
|
-
meta/title
|
39
|
-
meta/version
|
40
|
-
test/cases
|
41
|
-
test/cases/coverage_case.rb
|
42
|
-
test/cases/testcase_case.rb
|
43
|
-
test/demos
|
data/Syckfile
DELETED
@@ -1,68 +0,0 @@
|
|
1
|
-
---
|
2
|
-
box:
|
3
|
-
service: Box
|
4
|
-
active : true
|
5
|
-
types : [gem, gz]
|
6
|
-
include: [bin, lib, meta, test, "[A-Z]*"]
|
7
|
-
exclude: [Syckfile]
|
8
|
-
master : true
|
9
|
-
|
10
|
-
email:
|
11
|
-
service : Email
|
12
|
-
file : ~
|
13
|
-
subject : ~
|
14
|
-
mailto : ruby-talk@ruby-lang.org
|
15
|
-
from : <%= ENV['EMAIL_ACCOUNT'] %>
|
16
|
-
server : <%= ENV['EMAIL_SERVER'] %>
|
17
|
-
port : <%= ENV['EMAIL_PORT'] %>
|
18
|
-
account : <%= ENV['EMAIL_ACCOUNT'] %>
|
19
|
-
domain : <%= ENV['EMAIL_DOMAIN'] %>
|
20
|
-
login : <%= ENV['EMAIL_LOGIN'] %>
|
21
|
-
secure : <%= ENV['EMAIL_SECURE'] %>
|
22
|
-
active : true
|
23
|
-
|
24
|
-
dnote:
|
25
|
-
service : DNote
|
26
|
-
loadpath : ~
|
27
|
-
labels : ~
|
28
|
-
output : ~
|
29
|
-
active : true
|
30
|
-
|
31
|
-
ridoc:
|
32
|
-
service: RIDoc
|
33
|
-
include: ~
|
34
|
-
exclude: [Syckfile]
|
35
|
-
ignore : ~
|
36
|
-
active : true
|
37
|
-
|
38
|
-
stats:
|
39
|
-
service : Stats
|
40
|
-
title : ~
|
41
|
-
loadpath : ~
|
42
|
-
exclude : ~
|
43
|
-
output : ~
|
44
|
-
active : true
|
45
|
-
|
46
|
-
testrb:
|
47
|
-
service : Testrb
|
48
|
-
tests : ~
|
49
|
-
exclude : ~
|
50
|
-
loadpath : ~
|
51
|
-
requires : ~
|
52
|
-
live : false
|
53
|
-
active : false
|
54
|
-
|
55
|
-
vclog:
|
56
|
-
service : VClog
|
57
|
-
format : html # xml, txt
|
58
|
-
layout : rel # gnu
|
59
|
-
typed : false
|
60
|
-
output : ~
|
61
|
-
active : false
|
62
|
-
|
63
|
-
syntax:
|
64
|
-
service : Syntax
|
65
|
-
loadpath : ~
|
66
|
-
exclude : ~
|
67
|
-
active : false
|
68
|
-
|
data/lib/lemon/reporters.rb
DELETED
@@ -1,92 +0,0 @@
|
|
1
|
-
module Lemon
|
2
|
-
module Reporters
|
3
|
-
|
4
|
-
require 'lemon/reporter'
|
5
|
-
|
6
|
-
# Generic Reporter
|
7
|
-
class Verbose < Reporter
|
8
|
-
|
9
|
-
#
|
10
|
-
def report_start(suite)
|
11
|
-
end
|
12
|
-
|
13
|
-
#
|
14
|
-
def report_concern(concern)
|
15
|
-
puts
|
16
|
-
puts "#{concern.description}\n\n" unless concern.description.empty?
|
17
|
-
end
|
18
|
-
|
19
|
-
#
|
20
|
-
def report_success(testunit)
|
21
|
-
puts "* #{testunit}"
|
22
|
-
end
|
23
|
-
|
24
|
-
#
|
25
|
-
def report_failure(testunit, exception)
|
26
|
-
puts "* #{testunit}"
|
27
|
-
puts
|
28
|
-
puts " FAIL #{exception.backtrace[0]}"
|
29
|
-
puts " #{exception}"
|
30
|
-
puts
|
31
|
-
end
|
32
|
-
|
33
|
-
#
|
34
|
-
def report_error(testunit, exception)
|
35
|
-
puts "* #{testunit}"
|
36
|
-
puts
|
37
|
-
puts " ERROR #{exception.backtrace[0]}"
|
38
|
-
puts " #{exception}"
|
39
|
-
puts
|
40
|
-
end
|
41
|
-
|
42
|
-
#
|
43
|
-
def report_pending(testunit, exception)
|
44
|
-
puts "* #{testunit}"
|
45
|
-
puts
|
46
|
-
puts " PENDING #{exception.backtrace[1]}"
|
47
|
-
puts
|
48
|
-
end
|
49
|
-
|
50
|
-
#
|
51
|
-
def report_finish
|
52
|
-
puts
|
53
|
-
|
54
|
-
=begin
|
55
|
-
unless failures.empty?
|
56
|
-
puts "FAILURES:\n\n"
|
57
|
-
failures.each do |testunit, exception|
|
58
|
-
puts " #{testunit}"
|
59
|
-
puts " #{exception}"
|
60
|
-
puts " #{exception.backtrace[0]}"
|
61
|
-
puts
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
unless errors.empty?
|
66
|
-
puts "ERRORS:\n\n"
|
67
|
-
errors.each do |testunit, exception|
|
68
|
-
puts " #{testunit}"
|
69
|
-
puts " #{exception}"
|
70
|
-
puts " #{exception.backtrace[0]}"
|
71
|
-
puts
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
unless pendings.empty?
|
76
|
-
puts "PENDING:\n\n"
|
77
|
-
pendings.each do |testunit, exception|
|
78
|
-
puts " #{testunit}"
|
79
|
-
end
|
80
|
-
puts
|
81
|
-
end
|
82
|
-
=end
|
83
|
-
|
84
|
-
total = successes.size + failures.size + errors.size + pendings.size
|
85
|
-
puts "#{total} tests, #{successes.size} pass, #{failures.size} failures, #{errors.size} errors, #{pendings.size} pending"
|
86
|
-
end
|
87
|
-
|
88
|
-
end
|
89
|
-
|
90
|
-
end
|
91
|
-
end
|
92
|
-
|