Skip to content

Bad-ptr/bptr-tests-from-docstrings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bptr-tests-from-docstrings

Common Lisp program for making unit tests from symbol's docstrings.

Intro

Try to analyze docstrings of symbols to generate tests for them.
Sample:

(defpackage :tsts-package (:use :cl))
(in-package :tsts-package)

(defun test (arg)
  
  "Test function.
Tests:
 (test t) ==> t ;;
 (test nil) ==> nil"
  
  (if arg t nil))

(let ((tstdb (bptr-tfd:make-empty-testsdb)))
  (bptr-tfd:make-tests-for-package :tsts-package :testsdb tstdb)
  (bptr-tfd:run-testsdb :testsdb tstdb))

This will create and run two tests for test function.
As another examples you could see bptr-plist and bptr-html

About

Common Lisp library for generating tests from docstrings.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published