projects/gsll/lisp-unit.git
4 weeks agoRemove redundant function print-warning. master
Thomas M. Hermann [Mon, 22 Apr 2013 15:34:47 +0000] 
Remove redundant function print-warning.

4 weeks agoEnsure that a package object is used as the hash-key for tests and tags DB.
Thomas M. Hermann [Thu, 18 Apr 2013 19:34:47 +0000] 
Ensure that a package object is used as the hash-key for tests and tags DB.

4 weeks agoWarn when there are no tests or tags defined for a package.
Thomas M. Hermann [Thu, 18 Apr 2013 19:03:07 +0000] 
Warn when there are no tests or tags defined for a package.

Return NIL from functions that are returning lists of things.

6 weeks agoUse a function instead of a generic function to generate the failure instance.
Thomas M. Hermann [Tue, 2 Apr 2013 21:41:55 +0000] 
Use a function instead of a generic function to generate the failure instance.

2 months agoVersion 0.9.5 README. 0.9.5
Thomas M. Hermann [Mon, 18 Mar 2013 14:54:42 +0000] 
Version 0.9.5 README.

2 months agoMake the list of test names and tags optional.
Thomas M. Hermann [Mon, 18 Mar 2013 14:23:26 +0000] 
Make the list of test names and tags optional.

 * remove-tests
 * tagged-tests
 * remove-tags
 * run-tests
 * run-tags

2 months agoSignal an error if no tests are defined in the package.
Thomas M. Hermann [Fri, 15 Mar 2013 01:52:48 +0000] 
Signal an error if no tests are defined in the package.

Also clean up warning messages for test-documentation and test-code.

2 months agoCorrectly quote name and use valid-test-name in define-test.
Thomas M. Hermann [Thu, 14 Mar 2013 03:56:05 +0000] 
Correctly quote name and use valid-test-name in define-test.

2 months agoReplace assert-class function with generic function record-failure.
Thomas M. Hermann [Thu, 14 Mar 2013 03:44:49 +0000] 
Replace assert-class function with generic function record-failure.

Better facilitates extensions.

2 months agoReplace assert-function with a generic function assert-result.
Thomas M. Hermann [Thu, 14 Mar 2013 03:23:14 +0000] 
Replace assert-function with a generic function assert-result.

Specialize on the type of assertion. This better facilitates extensions.

2 months agoSignal a type-error if anything besides a symbol is used for a test name.
Thomas M. Hermann [Thu, 14 Mar 2013 03:08:47 +0000] 
Signal a type-error if anything besides a symbol is used for a test name.

3 months agoUpdate the README for version 0.9.4. 0.9.4
Thomas M. Hermann [Mon, 11 Feb 2013 03:03:56 +0000] 
Update the README for version 0.9.4.

Cover the new TAP features.

3 months agoMerge branch 'tap'
Thomas M. Hermann [Fri, 8 Feb 2013 21:06:20 +0000] 
Merge branch 'tap'

Conflicts:
lisp-unit.lisp

3 months agoCorrect the macro expansion assertion to number GENSYMS from 1. tap
Thomas M. Hermann [Fri, 8 Feb 2013 20:56:29 +0000] 
Correct the macro expansion assertion to number GENSYMS from 1.

Improve the comparison of the expanded forms.

3 months agoMerge pull request #12 from AccelerationNet/tap-with-test-times
Thomas M. Hermann [Wed, 6 Feb 2013 05:02:32 +0000] 
Merge pull request #12 from AccelerationNet/tap-with-test-times

Tap with test times

3 months agoprint out test duration, in seconds
Ryan Davis [Tue, 5 Feb 2013 14:56:42 +0000] 
print out test duration, in seconds

3 months agorecord the run time of the test
Ryan Davis [Tue, 5 Feb 2013 14:54:01 +0000] 
record the run time of the test

3 months agoWarn on missing tags to remove and continue on.
Thomas M. Hermann [Sun, 3 Feb 2013 03:00:04 +0000] 
Warn on missing tags to remove and continue on.

3 months agoWarn on missing tests to remove and continue on.
Thomas M. Hermann [Sun, 3 Feb 2013 02:57:39 +0000] 
Warn on missing tests to remove and continue on.

Do no collect the removed names, the collected list wasn't used.

3 months agoAdd an optional stream argument to all print and output functions.
Thomas M. Hermann [Sun, 3 Feb 2013 02:41:54 +0000] 
Add an optional stream argument to all print and output functions.

3 months agoCount passed assertions and only store details for failed assertions.
Thomas M. Hermann [Fri, 1 Feb 2013 05:43:19 +0000] 
Count passed assertions and only store details for failed assertions.

3 months agoOptionally signal results.
Thomas M. Hermann [Fri, 1 Feb 2013 05:09:22 +0000] 
Optionally signal results.

3 months agoMerge pull request #9 from AccelerationNet/master
Thomas M. Hermann [Thu, 31 Jan 2013 17:08:02 +0000] 
Merge pull request #9 from AccelerationNet/master

new *keep-passing-asserts* flag to restrict memory usage

3 months agoMerge pull request #10 from AccelerationNet/tap
Thomas M. Hermann [Thu, 31 Jan 2013 17:07:48 +0000] 
Merge pull request #10 from AccelerationNet/tap

Tap output based off existing tap branch

3 months agoremove extraneous hyphen
Ryan Davis [Wed, 30 Jan 2013 17:38:36 +0000] 
remove extraneous hyphen

3 months agoenable print-pretty for TAP results
Ryan Davis [Wed, 30 Jan 2013 17:37:06 +0000] 
enable print-pretty for TAP results

3 months agosupport test output using the test anything protocol
Ryan Davis [Tue, 29 Jan 2013 20:39:40 +0000] 
support test output using the test anything protocol

Converts a test-result object into TAP format. Two new functions:
 * `write-tap`
 * `write-tap-to-file`

To manage the indentation levels TAP wants, this uses
[pprint-logical-block] and heavily uses the [~I] format directive,
which is shorthand for [pprint-indent].  This gets a little tricky
because indentation levels only take effect after a newline.

[pprint-logical-block]: http://www.lispworks.com/documentation/HyperSpec/Body/m_ppr_lo.htm
[~I]: http://www.lispworks.com/documentation/HyperSpec/Body/22_cec.htm
[pprint-indent]: http://www.lispworks.com/documentation/HyperSpec/Body/f_ppr_in.htm

refs #3

3 months agointroduce a new `test-run-complete` condition, and signal it when test
Ryan Davis [Tue, 29 Jan 2013 20:36:02 +0000] 
introduce a new `test-run-complete` condition, and signal it when test
runs are complete.

This serves as an integration/extensibility point for other systems.

In my case, I'm going to have my continuous integration server listen
for this condition and process the test results, something like:

```lisp
(handler-bind ((lisp-unit:test-run-complete
                 #'(lambda (trc)
                     (process (lisp-unit:results trc)))))
  (asdf:test-system :foo))
```

refs #3

3 months agointroduce a `*keep-passing-asserts*` flag to toggle keeping details
Ryan Davis [Wed, 30 Jan 2013 15:46:36 +0000] 
introduce a `*keep-passing-asserts*` flag to toggle keeping details
about passing asserts.

When non-nil, passing test assertions will be collected as objects and
accessible in test-result objects.  When nil, only the type of the
passing assertion will be collected, saving significant memory.

The default is T, which can consume lots of memory for large numbers
of asserts (in my case, sbcl heap exhaustion with 95K assertions).

refs #8

3 months agoMerge branch 'master' of github.com:OdonataResearchLLC/lisp-unit
Ryan Davis [Tue, 29 Jan 2013 18:33:35 +0000] 
Merge branch 'master' of github.com:OdonataResearchLLC/lisp-unit

3 months agoPerform evaluation of actual, expected, and extra forms in internal-assert.
Thomas M. Hermann [Tue, 29 Jan 2013 13:16:04 +0000] 
Perform evaluation of actual, expected, and extra forms in internal-assert.

This was prompted by CCL checking the slot type and signaling a condition
when a function was provided as an initarg. In the original code, the slot
ultimately contained a list, but only after INITIALIZE-INSTANCE.

3 months agoGuard against multiple evaluations of a unit test name.
Thomas M. Hermann [Tue, 29 Jan 2013 13:13:43 +0000] 
Guard against multiple evaluations of a unit test name.

3 months agoFIXME note for the norm of an array in the floating point extensions.
Thomas M. Hermann [Tue, 29 Jan 2013 03:53:14 +0000] 
FIXME note for the norm of an array in the floating point extensions.

5 months agoREADME for version 0.9.3. assertion-records 0.9.3
Thomas M. Hermann [Fri, 14 Dec 2012 23:10:24 +0000] 
README for version 0.9.3.

5 months agoExamples of using tags.
Thomas M. Hermann [Fri, 14 Dec 2012 23:09:47 +0000] 
Examples of using tags.

5 months agoWarn if there are no tests for a tag.
Thomas M. Hermann [Fri, 14 Dec 2012 22:58:43 +0000] 
Warn if there are no tests for a tag.

5 months agoClean up the equality predicates.
Thomas M. Hermann [Mon, 26 Nov 2012 22:40:33 +0000] 
Clean up the equality predicates.

5 months agoMerge branch 'master' into assertion-records
Thomas M. Hermann [Mon, 26 Nov 2012 22:38:43 +0000] 
Merge branch 'master' into assertion-records

Conflicts:
lisp-unit.lisp

5 months agoResurrect the use-debugger function.
Thomas M. Hermann [Mon, 26 Nov 2012 22:36:09 +0000] 
Resurrect the use-debugger function.

A victim of over-zealous factoring.

5 months agoUpdate %run-thunks to make a test-results-db instance.
Thomas M. Hermann [Fri, 23 Nov 2012 18:06:59 +0000] 
Update %run-thunks to make a test-results-db instance.

5 months agoReset the global counters whenever run-tests or run-tags is called.
Thomas M. Hermann [Fri, 23 Nov 2012 17:04:14 +0000] 
Reset the global counters whenever run-tests or run-tags is called.

Results are pushed to the global counters whenever assertions are
directly evaluated. These counters cannot, should not, be used directly,
so it is a good idea to reset them periodically. A good time to do that
is when run-tests or run-tags is called.

5 months agoUse the local exerr in print-errors.
Thomas M. Hermann [Fri, 23 Nov 2012 16:00:05 +0000] 
Use the local exerr in print-errors.

5 months agoRefine and export the failure and error print functions.
Thomas M. Hermann [Fri, 23 Nov 2012 15:47:44 +0000] 
Refine and export the failure and error print functions.

5 months agoPrint failures and errors as test results are generated.
Thomas M. Hermann [Fri, 23 Nov 2012 01:34:53 +0000] 
Print failures and errors as test results are generated.

5 months agoPrint failures and errors during tests if requested.
Thomas M. Hermann [Thu, 22 Nov 2012 20:22:04 +0000] 
Print failures and errors during tests if requested.

5 months agoProperly handle the extra results.
Thomas M. Hermann [Thu, 22 Nov 2012 20:17:41 +0000] 
Properly handle the extra results.

5 months agoUpdate print-error to work with result objects.
Thomas M. Hermann [Thu, 22 Nov 2012 19:25:28 +0000] 
Update print-error to work with result objects.

5 months agoUpdate print-failure to work with result objects.
Thomas M. Hermann [Thu, 22 Nov 2012 19:22:55 +0000] 
Update print-failure to work with result objects.

5 months agoOrganize the main lisp-unit file.
Thomas M. Hermann [Thu, 22 Nov 2012 19:00:12 +0000] 
Organize the main lisp-unit file.

5 months agoPreliminary implementation of comprehensive test results objects.
Thomas M. Hermann [Thu, 22 Nov 2012 18:25:21 +0000] 
Preliminary implementation of comprehensive test results objects.

6 months agoMerge pull request #1 from OdonataResearchLLC/master
Ryan Davis [Thu, 1 Nov 2012 14:28:47 +0000] 
Merge pull request #1 from OdonataResearchLLC/master

Return the condition instead of :error

6 months agoMerge branch 'master' into assertion-records
Thomas M. Hermann [Wed, 31 Oct 2012 02:00:48 +0000] 
Merge branch 'master' into assertion-records

Conflicts:
lisp-unit.lisp

6 months agoReturn the actual condition instead of :error.
Thomas M. Hermann [Wed, 31 Oct 2012 01:51:30 +0000] 
Return the actual condition instead of :error.

6 months agoMerge pull request #4 from AccelerationNet/master
Thomas M. Hermann [Wed, 31 Oct 2012 01:35:10 +0000] 
Merge pull request #4 from AccelerationNet/master

Make use-debugger more useful

6 months agomake use-debugger actually allow the debugger to get called with the
Russ Tyndall [Tue, 30 Oct 2012 19:46:35 +0000] 
make use-debugger actually allow the debugger to get called with the
original stack (use handler-bind instead of case)

7 months agoUpdate print-failure and print-error to handle various output formats.
Thomas M. Hermann [Fri, 19 Oct 2012 22:05:45 +0000] 
Update print-failure and print-error to handle various output formats.

- Add a format argument to print-failure
- Convert print-error to a generic function
- Add a format argument to print-error
- Add a global variable *output-format*

7 months agoUnpdated norms with internal unit tests. 0.9.2
Thomas M. Hermann [Tue, 16 Oct 2012 03:45:24 +0000] 
Unpdated norms with internal unit tests.

7 months agoObsolete call to get-tagged-tests in run-tags.
Thomas M. Hermann [Tue, 16 Oct 2012 03:40:58 +0000] 
Obsolete call to get-tagged-tests in run-tags.

7 months agoClean up sumsq sump.
Thomas M. Hermann [Tue, 16 Oct 2012 02:49:52 +0000] 
Clean up sumsq sump.

7 months agoImplement default-epsilon for sequences using LOOP.
Thomas M. Hermann [Tue, 16 Oct 2012 02:39:09 +0000] 
Implement default-epsilon for sequences using LOOP.

7 months agoMiscellaneous clean-up.
Thomas M. Hermann [Tue, 16 Oct 2012 02:31:47 +0000] 
Miscellaneous clean-up.

7 months agoMatch the ASDF definition version to the code.
Thomas M. Hermann [Mon, 15 Oct 2012 21:32:51 +0000] 
Match the ASDF definition version to the code.

7 months agoUse the string name of the test for documentation if none provided. 0.9.1
Thomas M. Hermann [Mon, 15 Oct 2012 15:55:33 +0000] 
Use the string name of the test for documentation if none provided.

7 months agoCorrect merge edit typo. 0.9.0
Thomas M. Hermann [Sun, 14 Oct 2012 23:44:25 +0000] 
Correct merge edit typo.

7 months agoMerge branch 'devel-0.9.0'
Thomas M. Hermann [Sun, 14 Oct 2012 22:47:52 +0000] 
Merge branch 'devel-0.9.0'

Conflicts:
lisp-unit.lisp

7 months agoUnmatched right parenthesis and bad format split in print-failure. devel-0.9.0
Thomas M. Hermann [Sun, 14 Oct 2012 22:24:51 +0000] 
Unmatched right parenthesis and bad format split in print-failure.

7 months agoUpdate remove-tests to also from the tests from tag lists.
Thomas M. Hermann [Sun, 14 Oct 2012 15:17:21 +0000] 
Update remove-tests to also from the tests from tag lists.

- Remove or replace get-* from all function names.

7 months agoMerge failure-control-string with print-failure.
Thomas M. Hermann [Sat, 13 Oct 2012 17:41:24 +0000] 
Merge failure-control-string with print-failure.

7 months agoExpanded on new features in 0.9.0 in the README.
Thomas M. Hermann [Sat, 13 Oct 2012 16:55:56 +0000] 
Expanded on new features in 0.9.0 in the README.

7 months agoAdd a documentation string to the unit test object.
Thomas M. Hermann [Wed, 10 Oct 2012 22:31:38 +0000] 
Add a documentation string to the unit test object.

7 months agoInitial implementation of test tags.
Thomas M. Hermann [Wed, 10 Oct 2012 22:20:32 +0000] 
Initial implementation of test tags.

7 months agoFunctions for managing the tags DB.
Thomas M. Hermann [Wed, 10 Oct 2012 21:35:12 +0000] 
Functions for managing the tags DB.

7 months agoParse tag definitions in the unit test body.
Thomas M. Hermann [Wed, 10 Oct 2012 20:51:50 +0000] 
Parse tag definitions in the unit test body.

7 months agoDefine a unit test class to store code and documentation.
Thomas M. Hermann [Wed, 10 Oct 2012 20:26:33 +0000] 
Define a unit test class to store code and documentation.

7 months agoFix typos in the 'How to use' comment, correct reference link in README.
Thomas M. Hermann [Wed, 10 Oct 2012 19:05:51 +0000] 
Fix typos in the 'How to use' comment, correct reference link in README.

7 months agoUpdate the simplified interface link in the README
Thomas M. Hermann [Wed, 10 Oct 2012 18:54:29 +0000] 
Update the simplified interface link in the README

7 months agoUpdate get-tests and get-test-code for managing tests.
Thomas M. Hermann [Wed, 10 Oct 2012 18:24:02 +0000] 
Update get-tests and get-test-code for managing tests.

7 months agoDescribe and link to the simplified interface in the README.
Thomas M. Hermann [Wed, 10 Oct 2012 18:11:10 +0000] 
Describe and link to the simplified interface in the README.

7 months agoCompatibility version 0.8.1. 0.8.1
Thomas M. Hermann [Wed, 10 Oct 2012 15:55:17 +0000] 
Compatibility version 0.8.1.

7 months agoWarn if no test are defined in the package.
Thomas M. Hermann [Wed, 10 Oct 2012 02:52:19 +0000] 
Warn if no test are defined in the package.

Improve formatting of summarize-results.

7 months agoCorrect some bugs with the resurrected API.
Thomas M. Hermann [Wed, 10 Oct 2012 01:55:17 +0000] 
Correct some bugs with the resurrected API.

7 months agoRoll back the run-tests,run-all-tests,remove-tests,remove-all-tests API.
Thomas M. Hermann [Tue, 9 Oct 2012 22:20:40 +0000] 
Roll back the run-tests,run-all-tests,remove-tests,remove-all-tests API.

Do this to facilitate a Quicklisp release.

7 months agoWrap the new run-tests function in the old interface.
Thomas M. Hermann [Tue, 9 Oct 2012 20:59:23 +0000] 
Wrap the new run-tests function in the old interface.

Do this temporarily for Quicklisp compatibility.

7 months agoVersion 0.8.0 0.8.0
Thomas M. Hermann [Mon, 8 Oct 2012 04:53:26 +0000] 
Version 0.8.0

Update some comments to reflect the new documentation.

7 months agoRemove the obsolete lisp-unit documentation. report-tools
Thomas M. Hermann [Mon, 8 Oct 2012 04:36:33 +0000] 
Remove the obsolete lisp-unit documentation.

7 months agoPrint the summary when any print parameter is true.
Thomas M. Hermann [Mon, 8 Oct 2012 04:36:18 +0000] 
Print the summary when any print parameter is true.

7 months agoUpdate the README file to reflect new tasks and link to wiki.
Thomas M. Hermann [Mon, 8 Oct 2012 02:52:23 +0000] 
Update the README file to reflect new tasks and link to wiki.

7 months agoAlways summarize the results.
Thomas M. Hermann [Mon, 8 Oct 2012 03:00:48 +0000] 
Always summarize the results.

7 months agoExport functions for reporting test results.
Thomas M. Hermann [Mon, 8 Oct 2012 02:37:45 +0000] 
Export functions for reporting test results.

7 months agoAdded the my-sqrt example test.
Thomas M. Hermann [Mon, 8 Oct 2012 01:02:17 +0000] 
Added the my-sqrt example test.

7 months agoPrint parameters and format for failures, summary, and execution errors.
Thomas M. Hermann [Sun, 7 Oct 2012 22:54:16 +0000] 
Print parameters and format for failures, summary, and execution errors.

7 months agoPrint the summary count totals with the representation of the object.
Thomas M. Hermann [Sat, 6 Oct 2012 18:53:19 +0000] 
Print the summary count totals with the representation of the object.

7 months agoImprove the results summary.
Thomas M. Hermann [Sat, 6 Oct 2012 18:44:42 +0000] 
Improve the results summary.

7 months agoMinimal implementation with new interface and updated test reporting.
Thomas M. Hermann [Sat, 6 Oct 2012 16:52:12 +0000] 
Minimal implementation with new interface and updated test reporting.

7 months agoNon-working patch with basic assertions updated.
Thomas M. Hermann [Fri, 5 Oct 2012 02:01:38 +0000] 
Non-working patch with basic assertions updated.

Updated internal-assert to work with the new reporting philosophy.

7 months agoConvert run-tests and run-all-tests to functions. internal-testing
Thomas M. Hermann [Tue, 2 Oct 2012 03:16:02 +0000] 
Convert run-tests and run-all-tests to functions.

- Modify to argument list to be congruent with remove-tests and
  remove-all-tests
- Add a bunch of docstrings

7 months agoCode comment.
Thomas M. Hermann [Tue, 2 Oct 2012 02:32:13 +0000] 
Code comment.

12 months agoConvert expand-extras to a macro.
Thomas M. Hermann [Sun, 22 Apr 2012 02:43:04 +0000] 
Convert expand-extras to a macro.

Also implemented tests for all expand-form type macros.

12 months agoPerform the MACROEXPAND-1 of the macro form in the function.
Thomas M. Hermann [Sat, 21 Apr 2012 20:20:12 +0000] 
Perform the MACROEXPAND-1 of the macro form in the function.

12 months agoConvert expand-output-form to a macro.
Thomas M. Hermann [Sat, 21 Apr 2012 20:12:00 +0000] 
Convert expand-output-form to a macro.