3 ms·
"Or did Common Lisp programmers generally write unit tests, have integration test harnesses, use package repos, etc. back in 1995? I somehow doubt that :)" Ric
by pfdietz 9y ago
"Or did Common Lisp programmers generally write unit tests, have integration test harnesses, use package repos, etc. back in 1995? I somehow doubt that :)"
Richard Waters wrote and made available a nice pair of utilities that I've long used.
http://www.cs.cmu.edu/Groups/AI/util/lang/lisp/code/testing/rt/0.html http://www.cs.cmu.edu/Groups/AI/util/lang/lisp/code/testing/...
http://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/lisp/code/testing/cover/0.html http://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/l...
The first is the RT package, which allows definition and execution of unit tests. Many elaborations of this have been written over the years.
The second, COVER, is more impressive: it uses Common Lisp macrology to implement a code coverage tool. Combined with RT you can not only unit test your code, you can confirm the level of branch coverage your unit tests achieve.
(I've since hacked up COVER to enable various extensions, including saving of coverage information for aggregation from different executions, and rollback to enable automated search for minimal coverage-improving inputs. Not available publicly right now, unfortunately.)