fiveam.git
11 years agoSimpler suites list. v1.2-fixes
Olof-Joachim Frahm [Mon, 3 Dec 2012 20:53:07 +0000 (21:53 +0100)]
Simpler suites list.

11 years agoRemove export of IN-SUITE*.
Olof-Joachim Frahm [Wed, 3 Apr 2013 21:15:19 +0000 (23:15 +0200)]
Remove export of IN-SUITE*.

11 years agoTypo.
Olof-Joachim Frahm [Wed, 3 Apr 2013 21:13:59 +0000 (23:13 +0200)]
Typo.

11 years agoMinor whitespace/documentation fixes
Marco Baringer [Mon, 11 Feb 2013 11:50:50 +0000 (12:50 +0100)]
Minor whitespace/documentation fixes

11 years agoAdd more documentation for random-checking.
Marco Baringer [Sat, 9 Feb 2013 18:27:05 +0000 (19:27 +0100)]
Add more documentation for random-checking.

11 years agoAdded simple rt compability layer (RT api backed by fiveam's explainers)
Marco Baringer [Sat, 9 Feb 2013 11:08:27 +0000 (12:08 +0100)]
Added simple rt compability layer (RT api backed by fiveam's explainers)

11 years agoMerge branch 'rt'
Marco Baringer [Sat, 9 Feb 2013 11:08:05 +0000 (12:08 +0100)]
Merge branch 'rt'

Conflicts:
src/test.lisp

11 years agoMerge remote-tracking branch 'cl-fiveam/master'
Marco Baringer [Sat, 9 Feb 2013 11:05:53 +0000 (12:05 +0100)]
Merge remote-tracking branch 'cl-fiveam/master'

Conflicts:
src/test.lisp

Update docstring for 5am:test to point to 5am:def-test

11 years agoMerge remote-tracking branch 'cl-fiveam/master' into rt
Marco Baringer [Sat, 9 Feb 2013 10:39:53 +0000 (11:39 +0100)]
Merge remote-tracking branch 'cl-fiveam/master' into rt

Conflicts:
src/test.lisp

11 years agoDon't signal a warning when the old TEST macro is used
Stelian Ionescu [Thu, 24 Jan 2013 21:49:34 +0000 (22:49 +0100)]
Don't signal a warning when the old TEST macro is used

12 years agoRemove in-suite* and def-suite*.
Marco Baringer [Wed, 19 Dec 2012 09:50:51 +0000 (10:50 +0100)]
Remove in-suite* and def-suite*.

12 years agoAdded short section about random testing to the manual.
Marco Baringer [Wed, 19 Dec 2012 09:45:44 +0000 (10:45 +0100)]
Added short section about random testing to the manual.

12 years agoRemoved functions !, !! and !!!.
Marco Baringer [Wed, 19 Dec 2012 09:45:04 +0000 (10:45 +0100)]
Removed functions !, !! and !!!.

12 years agoMove some of the 'dwim' logic out of the IS macro and into a helper function; Pass...
Marco Baringer [Mon, 17 Dec 2012 14:29:14 +0000 (15:29 +0100)]
Move some of the 'dwim' logic out of the IS macro and into a helper function; Pass objects to functions in process-failure, instead of make-instance initargs which are, somehow and evenutally, eval'd.

12 years agoMove the IS macro's string formatting out of the IS macro itself and into methods...
Marco Baringer [Mon, 10 Dec 2012 17:34:23 +0000 (18:34 +0100)]
Move the IS macro's string formatting out of the IS macro itself and into methods on (newly created) classes

12 years agoDocument the handling of values in the IS check macro.
Marco Baringer [Mon, 10 Dec 2012 16:47:01 +0000 (17:47 +0100)]
Document the handling of values in the IS check macro.

Whether this surves any purpose at all is up to debate.

12 years agoAdded .gitignore
Marco Baringer [Mon, 10 Dec 2012 16:38:46 +0000 (17:38 +0100)]
Added .gitignore

12 years agoPut some code examples into the manual
Marco Baringer [Sat, 8 Dec 2012 20:10:37 +0000 (21:10 +0100)]
Put some code examples into the manual

12 years agoDon't need darcs' .boring file anymore...
Marco Baringer [Tue, 4 Dec 2012 11:58:27 +0000 (12:58 +0100)]
Don't need darcs' .boring file anymore...

12 years agoMore documentation (suites and fixtures)
Marco Baringer [Tue, 4 Dec 2012 11:53:40 +0000 (12:53 +0100)]
More documentation (suites and fixtures)

12 years agoUse correct case for package name and suite name (for AllegroCL modern mode).
Kiyoshi Mizumaru [Tue, 4 Dec 2012 10:47:52 +0000 (11:47 +0100)]
Use correct case for package name and suite name (for AllegroCL modern mode).

12 years agoMerge remote-tracking branch 'strawhatguy/master'
Marco Baringer [Sun, 2 Dec 2012 11:29:39 +0000 (12:29 +0100)]
Merge remote-tracking branch 'strawhatguy/master'

Bring in typo fixes; run-all-tests and friends and nicer IS output.

Conflicts:
src/check.lisp
src/run.lisp
src/suite.lisp

12 years agoAdd in TODO note
Marco Baringer [Sun, 2 Dec 2012 11:24:34 +0000 (12:24 +0100)]
Add in TODO note

12 years agoGive credit where it's due.
Marco Baringer [Fri, 30 Nov 2012 18:31:56 +0000 (19:31 +0100)]
Give credit where it's due.

12 years agoInitial (buggy and incomplete) version of manual and tutorial
Marco Baringer [Fri, 30 Nov 2012 18:28:15 +0000 (19:28 +0100)]
Initial (buggy and incomplete) version of manual and tutorial

12 years agoDocstring fixups (added some clarificatino here and there, reformatted into asciidoc...
Marco Baringer [Fri, 30 Nov 2012 18:27:17 +0000 (19:27 +0100)]
Docstring fixups (added some clarificatino here and there, reformatted into asciidoc 'style')

12 years agoExport *num-trials* and *max-trials*
Marco Baringer [Fri, 30 Nov 2012 18:26:43 +0000 (19:26 +0100)]
Export *num-trials* and *max-trials*

12 years agoRenamed the default suite to T; allow a suite parameter of NIL to mean a test/suite...
Marco Baringer [Thu, 29 Nov 2012 11:28:22 +0000 (12:28 +0100)]
Renamed the default suite to T; allow a suite parameter of NIL to mean a test/suite that is not in any other suite

Also fixed a bug where changed the test or suites :in suite (the value
in def-test and def-suite) was properly updating the tests slot of the
old suites and *suites*.

12 years agoAdded :default and :error arguments to get-test (instead of just an &optional default...
Marco Baringer [Thu, 29 Nov 2012 10:58:16 +0000 (11:58 +0100)]
Added :default and :error arguments to get-test (instead of just an &optional default argument)

Nowhere in fiveam's code was get-test called with the default argument.

12 years agoUpdate the *suites* variable in make-suite, not def-suite.
Marco Baringer [Thu, 29 Nov 2012 10:56:54 +0000 (11:56 +0100)]
Update the *suites* variable in make-suite, not def-suite.

This ensures that *suites* is up to date even if we don't use def-suite to create the suite.

12 years agoExplicityl make the *suites* hash table an eql table
Marco Baringer [Thu, 29 Nov 2012 10:55:16 +0000 (11:55 +0100)]
Explicityl make the *suites* hash table an eql table

12 years agoMerge remote-tracking branch 'cddr/introspection'
Marco Baringer [Thu, 29 Nov 2012 10:07:12 +0000 (11:07 +0100)]
Merge remote-tracking branch 'cddr/introspection'

Conflicts:
src/suite.lisp
t/tests.lisp

Added cddr's changes to def-suite to the recent per-suite-fixtures changes

12 years agoRemoved if-bind and aif since these are already in alexandria and we're depending...
Marco Baringer [Thu, 29 Nov 2012 09:25:27 +0000 (10:25 +0100)]
Removed if-bind and aif since these are already in alexandria and we're depending on alexandria anyway

12 years agominor docstring reindentation
Marco Baringer [Thu, 29 Nov 2012 09:21:56 +0000 (10:21 +0100)]
minor docstring reindentation

12 years agoAdded ability to specify fixtures on the suite object itself (instead of having to...
Marco Baringer [Thu, 29 Nov 2012 09:21:24 +0000 (10:21 +0100)]
Added ability to specify fixtures on the suite object itself (instead of having to specify it on every test)

12 years agoCleanup docstrings
Marco Baringer [Thu, 29 Nov 2012 09:06:21 +0000 (10:06 +0100)]
Cleanup docstrings

12 years agoAdded :MIN and :MAX arguments to GEN-FLOAT
Marco Baringer [Thu, 29 Nov 2012 08:58:38 +0000 (09:58 +0100)]
Added :MIN and :MAX arguments to GEN-FLOAT

The common case is that we want a number between 0 and
some-small-value, :MIN/:MAX make that easier to express in our tests.

12 years agoBetter pretty-printing of failed test result values
Matthew Curry [Sun, 18 Nov 2012 04:43:41 +0000 (05:43 +0100)]
Better pretty-printing of failed test result values

12 years agoUse package locks on SBCL
Stelian Ionescu [Sun, 18 Nov 2012 04:42:41 +0000 (05:42 +0100)]
Use package locks on SBCL

12 years agoBetter variable name
Stelian Ionescu [Sun, 18 Nov 2012 04:42:30 +0000 (05:42 +0100)]
Better variable name

12 years agoReturn list of failed tests as second value of RUN
Robert Goldman [Sun, 18 Nov 2012 04:40:33 +0000 (05:40 +0100)]
Return list of failed tests as second value of RUN

12 years agoRemove redundant lambda
Stelian Ionescu [Sun, 18 Nov 2012 04:38:54 +0000 (05:38 +0100)]
Remove redundant lambda

12 years agoMake the default test failure output a bit nicer
Matthew Curry [Sun, 18 Nov 2012 03:35:04 +0000 (22:35 -0500)]
Make the default test failure output a bit nicer

Long s-exps in tests get bunched up at the end of the line, making each
s-exp get it's own line is a bit easier to read.

12 years agoAdd function list-all-suites
Andy Chambers [Sun, 4 Nov 2012 17:34:28 +0000 (12:34 -0500)]
Add function list-all-suites

12 years agoFix typos.
Olof-Joachim Frahm [Thu, 23 Aug 2012 17:59:53 +0000 (19:59 +0200)]
Fix typos.

12 years agoTypo.
Olof-Joachim Frahm [Fri, 24 Aug 2012 14:33:20 +0000 (17:33 +0300)]
Typo.

12 years agoImplement RUN-ALL-TESTS and friends.
Olof-Joachim Frahm [Thu, 23 Aug 2012 19:13:52 +0000 (21:13 +0200)]
Implement RUN-ALL-TESTS and friends.

12 years agoSplit common functionality.
Olof-Joachim Frahm [Thu, 23 Aug 2012 19:13:36 +0000 (21:13 +0200)]
Split common functionality.

12 years agoTypos.
Olof-Joachim Frahm [Thu, 23 Aug 2012 17:59:53 +0000 (19:59 +0200)]
Typos.

12 years agoMove most of the expansion of DEF-TEST into the function REGISTER-TEST
Stelian Ionescu [Sun, 29 Jul 2012 20:27:19 +0000 (22:27 +0200)]
Move most of the expansion of DEF-TEST into the function REGISTER-TEST

That should reduce the size of FASLs containing tests

12 years agoRemove unnecessary REM-FIXTURE in the test suite
Stelian Ionescu [Sun, 29 Jul 2012 20:25:42 +0000 (22:25 +0200)]
Remove unnecessary REM-FIXTURE in the test suite

12 years agoUse DEF-TEST in internal test suite
Stelian Ionescu [Sun, 29 Jul 2012 17:05:18 +0000 (19:05 +0200)]
Use DEF-TEST in internal test suite

12 years agoAdd macro DEF-TEST with a different arglist than TEST and deprecate TEST
Stelian Ionescu [Sun, 29 Jul 2012 17:04:03 +0000 (19:04 +0200)]
Add macro DEF-TEST with a different arglist than TEST and deprecate TEST

LP #1024777

12 years agoRemove warning about fixture redefinition
Stelian Ionescu [Sun, 29 Jul 2012 17:02:20 +0000 (19:02 +0200)]
Remove warning about fixture redefinition

12 years agoFix typo
Stelian Ionescu [Sun, 29 Jul 2012 16:56:53 +0000 (18:56 +0200)]
Fix typo

12 years agoBetter arglists for DEF-FIXTURE and WITH-FIXTURE
Stelian Ionescu [Sun, 29 Jul 2012 16:56:45 +0000 (18:56 +0200)]
Better arglists for DEF-FIXTURE and WITH-FIXTURE

12 years agoFix typo
Stelian Ionescu [Sun, 29 Jul 2012 15:51:47 +0000 (17:51 +0200)]
Fix typo

12 years agoCreate named test lambdas
Stelian Ionescu [Sun, 29 Jul 2012 15:38:51 +0000 (17:38 +0200)]
Create named test lambdas

LP #1024772

12 years agoRelease 1.0
Stelian Ionescu [Fri, 1 Jun 2012 20:27:26 +0000 (22:27 +0200)]
Release 1.0

12 years agoFix typo
Stelian Ionescu [Wed, 25 Apr 2012 20:39:35 +0000 (22:39 +0200)]
Fix typo

12 years agoUse keywords with LOOP
Stelian Ionescu [Mon, 23 Apr 2012 10:56:52 +0000 (12:56 +0200)]
Use keywords with LOOP

12 years agoFix typo
Stelian Ionescu [Mon, 23 Apr 2012 10:53:56 +0000 (12:53 +0200)]
Fix typo

12 years agoEXPLAIN: call TERPRI on the actual argument
Stelian Ionescu [Mon, 23 Apr 2012 10:53:26 +0000 (12:53 +0200)]
EXPLAIN: call TERPRI on the actual argument

12 years agoAdd docstring to EXPLAIN
Stelian Ionescu [Mon, 23 Apr 2012 10:53:11 +0000 (12:53 +0200)]
Add docstring to EXPLAIN

12 years agoUse ROTATEF
Stelian Ionescu [Mon, 23 Apr 2012 10:53:01 +0000 (12:53 +0200)]
Use ROTATEF

12 years agoFix modelines
Stelian Ionescu [Mon, 23 Apr 2012 10:44:50 +0000 (12:44 +0200)]
Fix modelines

12 years agoRename packages.lisp to package.lisp
Stelian Ionescu [Mon, 23 Apr 2012 10:43:18 +0000 (12:43 +0200)]
Rename packages.lisp to package.lisp

12 years agoReplace mailing-list address with the new one
Stelian Ionescu [Sat, 21 Apr 2012 19:58:33 +0000 (21:58 +0200)]
Replace mailing-list address with the new one

12 years agoUse DEFGENERIC
Stelian Ionescu [Sat, 21 Apr 2012 14:58:41 +0000 (16:58 +0200)]
Use DEFGENERIC

12 years agoDrop dependency on Arnesi, use Alexandria instead
Stelian Ionescu [Sat, 21 Apr 2012 14:44:52 +0000 (16:44 +0200)]
Drop dependency on Arnesi, use Alexandria instead

Disable collection of profiling info until a portable library can be used

12 years agoUse lowercase-only characters for package names to fix compilation on Allegro
Stelian Ionescu [Sat, 21 Apr 2012 14:43:33 +0000 (16:43 +0200)]
Use lowercase-only characters for package names to fix compilation on Allegro

12 years agoFix indentation, whitespace
Stelian Ionescu [Sat, 21 Apr 2012 14:38:26 +0000 (16:38 +0200)]
Fix indentation, whitespace

15 years agosilence redefining fixture warning
Henrik Hjelte [Tue, 14 Apr 2009 16:03:38 +0000 (18:03 +0200)]
silence redefining fixture warning

16 years agomake gen-character more robust
Kilian Sprotte [Thu, 20 Mar 2008 09:49:11 +0000 (10:49 +0100)]
make gen-character more robust
code-char is allowed to return NIL for a given code.
gen-character now checks for this, so that it will always
return a character.

16 years agoDon't inline package object in ECL (breaks compilation).
Maciek Pasternacki [Sun, 10 Feb 2008 17:12:24 +0000 (18:12 +0100)]
Don't inline package object in ECL (breaks compilation).

17 years agoadded :before depends-on option
Henrik Hjelte [Thu, 1 Nov 2007 08:15:14 +0000 (09:15 +0100)]
added :before depends-on option
to be used when you really want to safeguard
that some other test has not run first.

17 years agodepends-on with single symbol resolves dependencies ok
Henrik Hjelte [Wed, 31 Oct 2007 08:50:10 +0000 (09:50 +0100)]
depends-on with single symbol resolves dependencies ok

17 years agobugfixed test of depends on symbol
Henrik Hjelte [Wed, 31 Oct 2007 08:45:16 +0000 (09:45 +0100)]
bugfixed test of depends on symbol

17 years agotests for dependencies with symbol
Henrik Hjelte [Wed, 31 Oct 2007 08:32:15 +0000 (09:32 +0100)]
tests for dependencies with symbol

18 years ago Platform-independent pathnames in make-qbook
Henrik Hjelte [Mon, 21 Aug 2006 08:29:48 +0000 (10:29 +0200)]
 Platform-independent pathnames in make-qbook

17 years agoadd an (eval-when ...) when defining a test suite
Luca Capello [Sun, 21 Oct 2007 20:10:56 +0000 (22:10 +0200)]
add an (eval-when ...) when defining a test suite

17 years agodef-suite should expand into an (eval-when (:always) ...) not a progn
Marco Baringer [Tue, 14 Aug 2007 17:36:09 +0000 (19:36 +0200)]
def-suite should expand into an (eval-when (:always) ...) not a progn

17 years agoRemoved the default-test-args slot from test-suite.
Marco Baringer [Tue, 26 Jun 2007 11:48:05 +0000 (13:48 +0200)]
Removed the default-test-args slot from test-suite.

This slot doesn't really do what it's says it does (redefining it
doesn't change things the way you'd expect) and it causes no end of
headaches by confusing compile-time definitions with run-time
definitions.

17 years agoThere is no fixture named foo, wtf?
Marco Baringer [Tue, 26 Jun 2007 11:49:14 +0000 (13:49 +0200)]
There is no fixture named foo, wtf?

17 years agoDon't put a literal suite object into a test form's macro expnsion.
Marco Baringer [Tue, 26 Jun 2007 11:49:00 +0000 (13:49 +0200)]
Don't put a literal suite object into a test form's macro expnsion.

Use either *SUITE* or (GET-TEST NAME)

17 years agoAdd support for collecting profiling information during test runs.
Marco Baringer [Tue, 26 Jun 2007 10:59:18 +0000 (12:59 +0200)]
Add support for collecting profiling information during test runs.

17 years agoAvoid dobule evaluation of IS-FALSE's argument
Marco Baringer [Tue, 26 Jun 2007 10:54:43 +0000 (12:54 +0200)]
Avoid dobule evaluation of IS-FALSE's argument

17 years agoAdded def-suite* macro
Marco Baringer [Sat, 24 Mar 2007 16:43:10 +0000 (17:43 +0100)]
Added def-suite* macro

17 years agoDrop spurious newline
Marco Baringer [Fri, 23 Mar 2007 19:59:18 +0000 (20:59 +0100)]
Drop spurious newline

17 years agoAdded :default-test-args parameter to def-suite.
Marco Baringer [Fri, 23 Mar 2007 19:56:25 +0000 (20:56 +0100)]
Added :default-test-args parameter to def-suite.

17 years agoAdded :fixture argument to TEST macro
Marco Baringer [Fri, 23 Mar 2007 19:41:33 +0000 (20:41 +0100)]
Added :fixture argument to TEST macro

17 years agoExport results-status
Marco Baringer [Tue, 9 Jan 2007 14:55:26 +0000 (15:55 +0100)]
Export results-status

18 years agoAdd new restart called explain which ignores the rest of the tests and expains the...
Levente Mészáros [Tue, 19 Dec 2006 13:30:12 +0000 (14:30 +0100)]
Add new restart called explain which ignores the rest of the tests and expains the current results.

18 years agoAdded :compile-at parameter for test (:run-time :definition-time)
Attila Lendvai [Wed, 20 Dec 2006 15:10:18 +0000 (16:10 +0100)]
Added :compile-at parameter for test (:run-time :definition-time)

18 years agoRebind *package* also when compiling the tests
Attila Lendvai [Sat, 9 Dec 2006 15:47:34 +0000 (16:47 +0100)]
Rebind *package* also when compiling the tests

18 years agoPrint failed tests in the order of execution
Attila Lendvai [Sat, 9 Dec 2006 15:47:15 +0000 (16:47 +0100)]
Print failed tests in the order of execution

18 years agoAdded :fiveam package nickname
Attila Lendvai [Fri, 10 Nov 2006 21:49:07 +0000 (22:49 +0100)]
Added :fiveam package nickname

18 years agoChange IS's default resaon strings to show the form which didn't
Marco Baringer [Wed, 6 Dec 2006 11:24:49 +0000 (12:24 +0100)]
Change IS's default resaon strings to show the form which didn't
provide the expected value (and, obviously, its value)

18 years agoCan't use &rest in loop destructuring. Use (expected actual . reason) instead.
Marco Baringer [Wed, 6 Dec 2006 10:54:51 +0000 (11:54 +0100)]
Can't use &rest in loop destructuring. Use (expected actual . reason) instead.

18 years agoFIX: gentree typo/unsaved file
Attila Lendvai [Thu, 9 Nov 2006 11:10:33 +0000 (12:10 +0100)]
FIX: gentree typo/unsaved file