1 Dec 2009 16:22
True (Unit) Test Integration
Nordlöw <per.nordlow <at> gmail.com>
2009-12-01 15:22:23 GMT
2009-12-01 15:22:23 GMT
As each symbol in obarray can contain properties/attributes using put () and get() wouldn't it be really useful to use this feature to enable "true" unit-test integration with code in the following way; When a function definition of symbol is changed we use the value of the property say :tester; If this value is function we call this function with function and report its output kind of like for example elk does. Similarly for packages a unit-test could be run every time a package- file is compiled by using eval-when-compile(), right? Does anyone know of any test package that uses this idea. I believe Python have something similar, doesn't it? Thanks in advance, Nordlöw


Perhaps the best form would be:
(= x
(+ y
(* 1
(- 2
(* 3
(^ a 2))))))
but that would be a different syntax. Notice that it could be the
work of an editor to read a source in whatever "syntax" it may happen
to be, to present it to the user in whatever form the user prefers,
allowing it to do structural editing instead of textual edition, and
saving it back to whatever "syntax" is required.
A little like it is done for character encodings, where you can load a
file in iso-2022, edit it in emacs unicode, and save it in utf-8, only
for language syntaxes.
RSS Feed