From aa1abec7fe0aec0fdc371c28c669da8ae0efe65c Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Tue, 29 Jun 2021 00:22:44 +0100 Subject: [PATCH] add fiveAM package and create initial test. I've changed how the tests and doc systems are defined in the .asd file. The changes are based on what SLIME outputted when compiling the project. The initial test are irrelevant to the project. I wrote it to make sure fiveAM (and the test project as a whole) was connected together properly. This test will (should) not remain once the main code is up and running. --- ritherdon-rest.asd | 5 +++-- tests/package.lisp | 2 +- tests/ritherdon-rest-tests.lisp | 5 +++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ritherdon-rest.asd b/ritherdon-rest.asd index 98585b9..94ab138 100644 --- a/ritherdon-rest.asd +++ b/ritherdon-rest.asd @@ -11,17 +11,18 @@ :components ((:file "package") (:file "ritherdon-rest"))) -(asdf:defsystem #:ritherdon-rest-tests +(asdf:defsystem #:ritherdon-rest/tests :description "The test suite for the ritherdon-rest project." :author "craig@craigoates.net" :license "MIT" :version "0.0.1" :serial t + :depends-on (#:fiveam) :pathname "tests/" :components ((:file "package") (:file "ritherdon-rest-tests"))) -(asdf:defsystem #:ritherdon-rest-doc +(asdf:defsystem #:ritherdon-rest/doc :description "The doc's package for the ritherdon-rest project." :author "craig@craigoates.net" :license "MIT" diff --git a/tests/package.lisp b/tests/package.lisp index f05f57d..0c3210c 100644 --- a/tests/package.lisp +++ b/tests/package.lisp @@ -1,4 +1,4 @@ ;;;; package.lisp (defpackage #:ritherdon-rest-tests - (:use #:cl)) + (:use #:cl :fiveam)) diff --git a/tests/ritherdon-rest-tests.lisp b/tests/ritherdon-rest-tests.lisp index 039b5cf..462bb4f 100644 --- a/tests/ritherdon-rest-tests.lisp +++ b/tests/ritherdon-rest-tests.lisp @@ -1,3 +1,8 @@ ;;;; ritherdon-rest-tests.lisp (in-package #:ritherdon-rest-tests) + +(fiveam:test sum-1 + (fiveam:is (= 3 (+ 1 2)))) + +(fiveam:run!)