Refactored to make testable.

Added tests.
This commit is contained in:
2020-12-03 21:12:12 -08:00
parent f3a148f13c
commit 24e16f8ac4
4 changed files with 228 additions and 17 deletions
+16 -1
View File
@@ -11,4 +11,19 @@
:cl-xmpp
:cl-xmpp-tls)
:components ((:file "package")
(:file "backplane-server")))
(:file "backplane-server"))
:in-order-to ((test-op (test-op :backplane-server/test))))
(asdf:defsystem #:backplane-server/test
:description "XMPP Backplane Server Tests"
:author "Niten <niten@fudo.org>"
:depends-on (:arrows
:backplane-server
:cl-json
:prove)
:defsystem-depends-on (:prove-asdf)
:components ((:module "test"
:serial t
:components ((:test-file "backplane-server-test"))))
:perform (asdf:test-op (op c)
(uiop:symbol-call :prove '#:run '#:backplane-server/test)))