Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Claylib needs smoke tests #15

Open
shelvick opened this issue Jun 12, 2022 · 1 comment
Open

Claylib needs smoke tests #15

shelvick opened this issue Jun 12, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@shelvick
Copy link
Collaborator

For now I think the best way of testing is through the examples, but it would be nice to have a couple of functions to run sets of examples at once rather than a bunch of manual REPL forms. Run the more complicated examples (and a different function for all of them) one by one, hit Escape when you're satisfied that it works, and then it runs the next one.

@shelvick shelvick added the enhancement New feature or request label Jun 12, 2022
@mjkalyan
Copy link
Collaborator

mjkalyan commented Jun 13, 2022

(defmacro run-all-examples ()
  `(progn ,@(mapcar (lambda (example) (loop for s being the external-symbols of example
                                            when (fboundp s) collect (funcall s)))
             (list-system-packages #:claylib/examples)))) ; TODO define list-system-packages

This assumes you don't make functions other than main external.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants