tdrhq / slite

a SLIme-based TEst runner for FiveAM and Parachute Tests
Apache License 2.0
50 stars 3 forks source link

Handling FOR-ALL-TEST-RESULT #8

Open ykonai opened 1 year ago

ykonai commented 1 year ago

Hi,

In FIVEAM, tests written with the FOR-ALL macro return a FOR-ALL-TEST-RESULT object, which (usually?) has the TEST-EXPRESSION slot unbound. This results in errors. An additional method is sufficient to fix this:

(defmethod slite/fiveam::test-expression :around ((result fiveam::for-all-test-result))
  "The test-expression slot in FOR-ALL-TEST-RESULT objects is usually unbound, so
return N/A instead.

Use :around as all fiveam::for-all-test-result subclasses also inherit
fiveam::test-result."
  "N/A")