Testsuite adapter for nibbles

9 views
Skip to first unread message

markus.i...@gmail.com

unread,
May 3, 2014, 12:57:14 PM5/3/14
to cl-tes...@googlegroups.com
Hi!

I'd like to add a testsuite adapter to cl-test-grid for nibbles. I am not the author, but I am the author of some libraries that uses it.

I think the code added to testsuites.lisp should look like this:

(defmethod libtest ((library-name (eql :nibbles)))
  ;; The test framework used: rt.
  (quicklisp:quickload :nibbles-tests)
  (run-rt-test-suite))

Thanks,
Markus Flambard

Anton Vodonosov

unread,
May 4, 2014, 6:28:04 AM5/4/14
to cl-tes...@googlegroups.com
Hi, added nibbles testsuite. Since now all test runs will include it.


BTW, the actual LIBTEST method looks like this:

(defmethod libtest ((library-name (eql :nibbles)))
;; The test framework used: rt.
(clean-rt)
(asdf:clear-system :nibbles)
(asdf:clear-system :nibbles-tests)
(quicklisp:quickload :nibbles-tests)
(run-rt-test-suite))

The complication is because RT test framework uses a global variable
to store all tests, there are no separate testsuites.

Therefore we first CLEAR-RT to remove unrelated tests possibly
stored in the global var, then we do ASDF:CLEAR-SYSTEM to ensure
following ql:quickload will reload the nibbles-test and thus re-populating
the global var with nibbles tests.

Best regards,
- Anton



03.05.2014, 20:57, "markus.i...@gmail.com" <markus.i...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups "cl-test-grid" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to cl-test-grid...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages