Add test suite adapter for cl-slug

7 views
Skip to first unread message

andrem...@gmail.com

unread,
May 8, 2015, 7:54:56 PM5/8/15
to cl-tes...@googlegroups.com
One can run the tests of cl-slug with:

(ql:quickload :cl-slug-test)
(prove:run :cl-slug-test)

Since cl-slug-test depends-on cl-slug, it loads it already with ql:quickload.
It also loads the prove library.

So the libtest method would look something like:

(defmethod libtest ((library-name (eql :cl-slug)))
  ;; test framework used: prove (old cl-test-more)
  (ql:quickload :cl-slug-test)
  (fncall "prove:run" :cl-slug-test))

or

(defmethod libtest ((library-name (eql :cl-slug)))
  (ql:quickload :cl-slug-test)
  (running-cl-test-more-suite "cl-slug"
                              (lambda ()
                                (ql:quickload :cl-slug-test))))

I don't know which version would comply more to cl-test-grid.

The prove:run function returns 3 values: all-passed-p, all-passed-files and all-failed-files.

Since prove supports many report output formats (list, dot, tap and fiveam)
the libtest could change prove:*default-reporter* to the most convenient output format.

If I want to add another project to cl-test-grid later, would you prefer me to make a pull request on github?

Thanks for your attention!

Anton Vodonosov

unread,
May 9, 2015, 2:39:25 AM5/9/15
to andrem...@gmail.com, cl-tes...@googlegroups.com
OK, I will add it soon.

> If I want to add another project to cl-test-grid later, would you prefer me to make a pull request on github?

An issue may be better (simpler), because most likely I will need to adjust something in the code,
so the pull request will not be accepted as it is.

Best regards,
- Anton

09.05.2015, 02:54, "andrem...@gmail.com" <andrem...@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.

andrem...@gmail.com

unread,
May 10, 2015, 10:35:59 AM5/10/15
to cl-tes...@googlegroups.com, andrem...@gmail.com
Thank you very much.

André.
Reply all
Reply to author
Forward
0 new messages