From 201bdac932778ccf420df492acb7eecaa209b0dd Mon Sep 17 00:00:00 2001 From: El-BG-1970 Date: Thu, 28 Jul 2022 21:57:10 +0200 Subject: Added testing capabilites and some tests added testing system to transacc.asd added some tests for commodities added some tests for inventory -> need to add more tests --- transacc.asd | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'transacc.asd') diff --git a/transacc.asd b/transacc.asd index ad44aae..a6e1934 100644 --- a/transacc.asd +++ b/transacc.asd @@ -8,8 +8,18 @@ :components ((:file "main" :depends-on ("game")) (:file "game" :depends-on ("zone" "player")) - (:file "zone" :depends-on ("commodities")) (:file "player" :depends-on ("commodities" "inventory")) + (:file "zone" :depends-on ("commodities")) (:file "inventory" :depends-on ("commodities")) (:file "commodities")))) - :description "Buy and sell to greatness") + :description "Buy and sell to greatness" + :in-order-to ((test-op (test-op "transacc/tests")))) + +(asdf:defsystem "transacc/tests" + :depends-on ("transacc" "fiveam") + :components ((:module "tests" + :components + ((:file "test")))) + :perform (test-op (op c) + (symbol-call :fiveam :run! + (find-symbol* :transacc-suite :transacc-tests)))) -- cgit v1.2.3