clucumber 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +1 -1
- data/README.md +4 -9
- data/lib/clucumber/clucumber-bootstrap.lisp +32 -0
- data/lib/clucumber/vendor/cl-interpol/alias.lisp +55 -0
- data/lib/clucumber/vendor/cl-interpol/cl-interpol.asd +56 -0
- data/lib/clucumber/vendor/cl-interpol/load.lisp +53 -0
- data/lib/clucumber/vendor/cl-interpol/packages.lisp +40 -0
- data/lib/clucumber/vendor/cl-interpol/read.lisp +716 -0
- data/lib/clucumber/vendor/cl-interpol/specials.lisp +113 -0
- data/lib/clucumber/vendor/cl-interpol/test/packages.lisp +34 -0
- data/lib/clucumber/vendor/cl-interpol/test/tests.lisp +128 -0
- data/lib/clucumber/vendor/cl-interpol/test.lisp +177 -0
- data/lib/clucumber/vendor/cl-interpol/test2.lisp +6254 -0
- data/lib/clucumber/vendor/cl-interpol/unicode.lisp +13912 -0
- data/lib/clucumber/vendor/cl-interpol/util.lisp +122 -0
- data/lib/clucumber/vendor/cl-ppcre/api.lisp +1262 -0
- data/lib/clucumber/vendor/cl-ppcre/charmap.lisp +152 -0
- data/lib/clucumber/vendor/cl-ppcre/charset.lisp +242 -0
- data/lib/clucumber/vendor/cl-ppcre/chartest.lisp +98 -0
- data/lib/clucumber/vendor/cl-ppcre/cl-ppcre-test.asd +34 -0
- data/lib/clucumber/vendor/cl-ppcre/cl-ppcre-unicode/packages.lisp +38 -0
- data/lib/clucumber/vendor/cl-ppcre/cl-ppcre-unicode/resolver.lisp +61 -0
- data/lib/clucumber/vendor/cl-ppcre/cl-ppcre-unicode.asd +58 -0
- data/lib/clucumber/vendor/cl-ppcre/cl-ppcre.asd +79 -0
- data/lib/clucumber/vendor/cl-ppcre/closures.lisp +471 -0
- data/lib/clucumber/vendor/cl-ppcre/convert.lisp +875 -0
- data/lib/clucumber/vendor/cl-ppcre/errors.lisp +84 -0
- data/lib/clucumber/vendor/cl-ppcre/lexer.lisp +737 -0
- data/lib/clucumber/vendor/cl-ppcre/lispworks-defsystem.lisp +57 -0
- data/lib/clucumber/vendor/cl-ppcre/load.lisp +67 -0
- data/lib/clucumber/vendor/cl-ppcre/optimize.lisp +578 -0
- data/lib/clucumber/vendor/cl-ppcre/packages.lisp +68 -0
- data/lib/clucumber/vendor/cl-ppcre/parser.lisp +319 -0
- data/lib/clucumber/vendor/cl-ppcre/ppcre-tests.lisp +269 -0
- data/lib/clucumber/vendor/cl-ppcre/regex-class-util.lisp +555 -0
- data/lib/clucumber/vendor/cl-ppcre/regex-class.lisp +259 -0
- data/lib/clucumber/vendor/cl-ppcre/repetition-closures.lisp +833 -0
- data/lib/clucumber/vendor/cl-ppcre/scanner.lisp +506 -0
- data/lib/clucumber/vendor/cl-ppcre/specials.lisp +172 -0
- data/lib/clucumber/vendor/cl-ppcre/test/packages.lisp +37 -0
- data/lib/clucumber/vendor/cl-ppcre/test/perl-tests.lisp +150 -0
- data/lib/clucumber/vendor/cl-ppcre/test/tests.lisp +159 -0
- data/lib/clucumber/vendor/cl-ppcre/test/unicode-tests.lisp +80 -0
- data/lib/clucumber/vendor/cl-ppcre/util.lisp +201 -0
- data/lib/clucumber/vendor/cl-unicode/alias.lisp +135 -0
- data/lib/clucumber/vendor/cl-unicode/api.lisp +412 -0
- data/lib/clucumber/vendor/cl-unicode/build/char-info.lisp +133 -0
- data/lib/clucumber/vendor/cl-unicode/build/dump.lisp +239 -0
- data/lib/clucumber/vendor/cl-unicode/build/read.lisp +280 -0
- data/lib/clucumber/vendor/cl-unicode/build/util.lisp +182 -0
- data/lib/clucumber/vendor/cl-unicode/cl-unicode.asd +90 -0
- data/lib/clucumber/vendor/cl-unicode/conditions.lisp +54 -0
- data/lib/clucumber/vendor/cl-unicode/derived.lisp +120 -0
- data/lib/clucumber/vendor/cl-unicode/hash-tables.lisp +20 -0
- data/lib/clucumber/vendor/cl-unicode/lists.lisp +10 -0
- data/lib/clucumber/vendor/cl-unicode/methods.lisp +15 -0
- data/lib/clucumber/vendor/cl-unicode/packages.lisp +76 -0
- data/lib/clucumber/vendor/cl-unicode/specials.lisp +135 -0
- data/lib/clucumber/vendor/cl-unicode/test/packages.lisp +34 -0
- data/lib/clucumber/vendor/cl-unicode/test/tests.lisp +150 -0
- data/lib/clucumber/vendor/cl-unicode/test-functions.lisp +94 -0
- data/lib/clucumber/vendor/cl-unicode/util.lisp +274 -0
- data/lib/clucumber/vendor/lift/compare/fiveam-tests.lisp +14 -0
- data/lib/clucumber/vendor/lift/compare/lift-tests.lisp +13 -0
- data/lib/clucumber/vendor/lift/compare/rt-tests.lisp +16 -0
- data/lib/clucumber/vendor/lift/compare/xlunit-tests.lisp +15 -0
- data/lib/clucumber/vendor/lift/dev/changes.lisp +61 -0
- data/lib/clucumber/vendor/lift/dev/config.lisp +354 -0
- data/lib/clucumber/vendor/lift/dev/copy-file.lisp +117 -0
- data/lib/clucumber/vendor/lift/dev/introspection.lisp +232 -0
- data/lib/clucumber/vendor/lift/dev/lift-interface.lisp +56 -0
- data/lib/clucumber/vendor/lift/dev/lift-notes.lisp +202 -0
- data/lib/clucumber/vendor/lift/dev/lift-randomized.lisp +45 -0
- data/lib/clucumber/vendor/lift/dev/lift.lisp +2383 -0
- data/lib/clucumber/vendor/lift/dev/macros.lisp +229 -0
- data/lib/clucumber/vendor/lift/dev/measuring.lisp +156 -0
- data/lib/clucumber/vendor/lift/dev/packages.lisp +161 -0
- data/lib/clucumber/vendor/lift/dev/port.lisp +151 -0
- data/lib/clucumber/vendor/lift/dev/prototypes.lisp +282 -0
- data/lib/clucumber/vendor/lift/dev/random-testing.lisp +124 -0
- data/lib/clucumber/vendor/lift/dev/report-locations.lisp +13 -0
- data/lib/clucumber/vendor/lift/dev/reports.lisp +916 -0
- data/lib/clucumber/vendor/lift/dev/utilities.lisp +242 -0
- data/lib/clucumber/vendor/lift/docs/package.lisp +6 -0
- data/lib/clucumber/vendor/lift/docs/setup.lisp +17 -0
- data/lib/clucumber/vendor/lift/examples/basic-examples.lisp +289 -0
- data/lib/clucumber/vendor/lift/examples/random-testing.lisp +32 -0
- data/lib/clucumber/vendor/lift/lift-documentation.asd +28 -0
- data/lib/clucumber/vendor/lift/lift-test.asd +35 -0
- data/lib/clucumber/vendor/lift/lift.asd +77 -0
- data/lib/clucumber/vendor/lift/test/equality-tests.lisp +40 -0
- data/lib/clucumber/vendor/lift/test/finding-tests.lisp +32 -0
- data/lib/clucumber/vendor/lift/test/lift-test.lisp +783 -0
- data/lib/clucumber/vendor/lift/test/order-of-operations.lisp +54 -0
- data/lib/clucumber/vendor/lift/test/packages.lisp +17 -0
- data/lib/clucumber/vendor/lift/test/test-config-files.lisp +20 -0
- data/lib/clucumber/vendor/lift/test/test-dynamic-variables.lisp +57 -0
- data/lib/clucumber/vendor/lift/test/test-maximum-problems.lisp +74 -0
- data/lib/clucumber/vendor/lift/test/test-prototypes.lisp +278 -0
- data/lib/clucumber/vendor/lift/test/test-timeout.lisp +37 -0
- data/lib/clucumber/vendor/lift/test/tests-in-progress.lisp +62 -0
- data/lib/clucumber/vendor/lift/test/testsuite-expects.lisp +60 -0
- data/lib/clucumber/vendor/lift/timeout/package.lisp +13 -0
- data/lib/clucumber/vendor/lift/timeout/with-timeout.lisp +123 -0
- data/lib/clucumber/vendor/lift/website/stuff/Temp.lisp +34 -0
- data/lib/clucumber/vendor/st-json/st-json.asd +3 -0
- data/lib/clucumber/vendor/st-json/st-json.lisp +310 -0
- data/lib/clucumber/vendor/trivial-backtrace/dev/backtrace.lisp +127 -0
- data/lib/clucumber/vendor/trivial-backtrace/dev/fallback.lisp +10 -0
- data/lib/clucumber/vendor/trivial-backtrace/dev/map-backtrace.lisp +103 -0
- data/lib/clucumber/vendor/trivial-backtrace/dev/mucking.lisp +75 -0
- data/lib/clucumber/vendor/trivial-backtrace/dev/packages.lisp +13 -0
- data/lib/clucumber/vendor/trivial-backtrace/dev/utilities.lisp +104 -0
- data/lib/clucumber/vendor/trivial-backtrace/test/packages.lisp +5 -0
- data/lib/clucumber/vendor/trivial-backtrace/test/test-setup.lisp +4 -0
- data/lib/clucumber/vendor/trivial-backtrace/test/tests.lisp +16 -0
- data/lib/clucumber/vendor/trivial-backtrace/trivial-backtrace-test.asd +22 -0
- data/lib/clucumber/vendor/trivial-backtrace/trivial-backtrace.asd +35 -0
- data/lib/clucumber/vendor/usocket/backend/allegro.lisp +199 -0
- data/lib/clucumber/vendor/usocket/backend/armedbear.lisp +491 -0
- data/lib/clucumber/vendor/usocket/backend/clisp.lisp +260 -0
- data/lib/clucumber/vendor/usocket/backend/cmucl.lisp +266 -0
- data/lib/clucumber/vendor/usocket/backend/lispworks.lisp +741 -0
- data/lib/clucumber/vendor/usocket/backend/mcl.lisp +369 -0
- data/lib/clucumber/vendor/usocket/backend/openmcl.lisp +206 -0
- data/lib/clucumber/vendor/usocket/backend/sbcl.lisp +424 -0
- data/lib/clucumber/vendor/usocket/backend/scl.lisp +261 -0
- data/lib/clucumber/vendor/usocket/condition.lisp +227 -0
- data/lib/clucumber/vendor/usocket/package.lisp +82 -0
- data/lib/clucumber/vendor/usocket/server.lisp +45 -0
- data/lib/clucumber/vendor/usocket/test/package.lisp +13 -0
- data/lib/clucumber/vendor/usocket/test/test-usocket.lisp +166 -0
- data/lib/clucumber/vendor/usocket/usocket-test.asd +26 -0
- data/lib/clucumber/vendor/usocket/usocket.asd +37 -0
- data/lib/clucumber/vendor/usocket/usocket.lisp +542 -0
- data/lib/clucumber/vendor/usocket/vendor/kqueue.lisp +1 -0
- data/lib/clucumber/vendor/usocket/vendor/split-sequence.lisp +245 -0
- data/lib/clucumber.rb +29 -7
- metadata +151 -5
@@ -0,0 +1,77 @@
|
|
1
|
+
(defpackage #:lift-system (:use #:common-lisp #:asdf))
|
2
|
+
(in-package #:lift-system)
|
3
|
+
|
4
|
+
(defsystem lift
|
5
|
+
:version "1.7.0"
|
6
|
+
:author "Gary Warren King <gwking@metabang.com>"
|
7
|
+
:maintainer "Gary Warren King <gwking@metabang.com>"
|
8
|
+
:licence "MIT Style License; see file COPYING for details"
|
9
|
+
:description "LIsp Framework for Testing"
|
10
|
+
:long-description "LIFT is an SUnit variant and much much more."
|
11
|
+
:components ((:module
|
12
|
+
"timeout"
|
13
|
+
:pathname "timeout/"
|
14
|
+
:components
|
15
|
+
((:file "package")
|
16
|
+
(:file "with-timeout" :depends-on ("package"))))
|
17
|
+
(:module
|
18
|
+
"setup"
|
19
|
+
:pathname "dev/"
|
20
|
+
:depends-on ("timeout")
|
21
|
+
:components
|
22
|
+
((:file "packages")
|
23
|
+
(:file "utilities"
|
24
|
+
:depends-on ("packages"))
|
25
|
+
(:file "macros"
|
26
|
+
:depends-on ("packages"))))
|
27
|
+
(:module
|
28
|
+
"dev"
|
29
|
+
:depends-on ("setup")
|
30
|
+
:components
|
31
|
+
((:static-file "notes.text")
|
32
|
+
(:file "lift"
|
33
|
+
:depends-on ("measuring" "port"))
|
34
|
+
(:file "copy-file"
|
35
|
+
:depends-on ())
|
36
|
+
(:file "random-testing"
|
37
|
+
:depends-on ("lift"))
|
38
|
+
(:file "port"
|
39
|
+
:depends-on ())
|
40
|
+
(:file "measuring"
|
41
|
+
:depends-on ("port"))
|
42
|
+
(:file "config"
|
43
|
+
:depends-on ("port" "lift"))
|
44
|
+
(:file "reports"
|
45
|
+
:depends-on ("port" "lift"))
|
46
|
+
(:file "introspection"
|
47
|
+
:depends-on ("lift"))
|
48
|
+
#+Ignore
|
49
|
+
(:file "prototypes"
|
50
|
+
:depends-on ("lift"))))
|
51
|
+
|
52
|
+
#+(or)
|
53
|
+
(:module
|
54
|
+
"website"
|
55
|
+
:components ((:module "source"
|
56
|
+
:components
|
57
|
+
((:static-file "index.md"))))))
|
58
|
+
|
59
|
+
:in-order-to ((test-op (load-op lift-test)))
|
60
|
+
:depends-on ()
|
61
|
+
:perform (test-op :after (op c)
|
62
|
+
(funcall
|
63
|
+
(intern (symbol-name '#:run-tests) :lift)
|
64
|
+
:config :generic)))
|
65
|
+
|
66
|
+
(defmethod operation-done-p
|
67
|
+
((o test-op) (c (eql (find-system 'lift))))
|
68
|
+
(values nil))
|
69
|
+
|
70
|
+
(when (find-system 'asdf-system-connections nil)
|
71
|
+
(asdf:operate 'asdf:load-op 'asdf-system-connections))
|
72
|
+
|
73
|
+
#+asdf-system-connections
|
74
|
+
(asdf:defsystem-connection lift-report-locations
|
75
|
+
:requires (:lift :asdf-binary-locations)
|
76
|
+
:components ((:module "dev"
|
77
|
+
:components ((:file "report-locations")))))
|
@@ -0,0 +1,40 @@
|
|
1
|
+
(in-package #:lift)
|
2
|
+
|
3
|
+
#+(or)
|
4
|
+
(run-tests :suite 'equality-test)
|
5
|
+
|
6
|
+
(deftestsuite equality-test (lift-test)
|
7
|
+
())
|
8
|
+
|
9
|
+
(deftestsuite equality-test-1 (equality-test)
|
10
|
+
()
|
11
|
+
(:equality-test '=)
|
12
|
+
(:documentation "Ensure that equality-test is inherited"))
|
13
|
+
|
14
|
+
(addtest (equality-test-1) test-1
|
15
|
+
(ensure-same *lift-equality-test* '= :test #'equal))
|
16
|
+
|
17
|
+
(deftestsuite equality-test-2 (equality-test-1)
|
18
|
+
())
|
19
|
+
|
20
|
+
(addtest (equality-test-2) test-1
|
21
|
+
(ensure-same *lift-equality-test* '= :test #'equal))
|
22
|
+
|
23
|
+
(deftestsuite equality-test-3 (equality-test-1)
|
24
|
+
()
|
25
|
+
(:equality-test 'equalp))
|
26
|
+
|
27
|
+
(addtest (equality-test-3) test-1
|
28
|
+
(ensure-same *lift-equality-test* 'equalp :test #'equal))
|
29
|
+
|
30
|
+
(deftestsuite test-equality-test-works (equality-test)
|
31
|
+
()
|
32
|
+
(:equality-test 'equalp)
|
33
|
+
(:setup
|
34
|
+
(ensure-same #(1 2 4) #(1 2 4))))
|
35
|
+
|
36
|
+
(addtest (test-equality-test-works)
|
37
|
+
test-1
|
38
|
+
(ensure-same #(1 2 4) #(1 2 4)))
|
39
|
+
|
40
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
(in-package #:lift-test)
|
2
|
+
|
3
|
+
(defpackage #:one-test-package
|
4
|
+
(:use #:common-lisp #:lift))
|
5
|
+
|
6
|
+
(defpackage #:two-test-package
|
7
|
+
(:use #:common-lisp #:lift))
|
8
|
+
|
9
|
+
(deftestsuite one-test-package::test-finding () ())
|
10
|
+
|
11
|
+
(deftestsuite two-test-package::test-finding () ())
|
12
|
+
|
13
|
+
(deftestsuite test-find-test-suite (lift-test) ())
|
14
|
+
|
15
|
+
(addtest (test-find-test-suite)
|
16
|
+
simple-searching
|
17
|
+
(ensure-same (lift::find-testsuite 'test-find-test-suite)
|
18
|
+
'test-find-test-suite)
|
19
|
+
(ensure-same (lift::find-testsuite 'one-test-package::test-finding)
|
20
|
+
'one-test-package::test-finding)
|
21
|
+
(ensure-same (lift::find-testsuite 'two-test-package::test-finding)
|
22
|
+
'two-test-package::test-finding))
|
23
|
+
|
24
|
+
(addtest (test-find-test-suite)
|
25
|
+
not-such-suite
|
26
|
+
(ensure-condition lift::testsuite-not-defined
|
27
|
+
(lift::find-testsuite (gensym) :errorp t)))
|
28
|
+
|
29
|
+
(addtest (test-find-test-suite)
|
30
|
+
two-many-tests
|
31
|
+
(ensure-error (lift:find-testsuite 'test-finding :errorp t)))
|
32
|
+
|