jphmrst / cl-nst

Unit testing for Common Lisp
Other
9 stars 1 forks source link

Better error report for unknown criterion #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
(RPG) I mistakenly used `:every` instead of `:all` as my compound criterion, 
and got this error:
{{{
Running test CHECK-LOOP-PLAN (group LOOP-ACCEL-TESTS)
 - Executing test CHECK-LOOP-PLAN
Check CHECK-LOOP-PLAN (group LOOP-ACCEL-TESTS) raised an error:
 - No primary method for the generic function #<STANDARD-GENERIC-FUNCTION SIFT.NST::APPLY-CRITERION> given arguments
   (NIL).at top level
   nil values
   at NIL
TOTAL: 0 of 1 passed (0 failed, 1 error, 0 warnings)
}}}
This seems unnecessarily cryptic.

As an aside, `:every` would probably be a better name than `:all` in the CL 
context.  Possibly make the former a synonym for the latter?

Original issue reported on code.google.com by john.mar...@gmail.com on 2 Sep 2014 at 4:29