Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Unittests?

From: greggirwin:mindspring at: 1-Nov-2002 12:05

Hi Robert, Have you seen David Vydra's REBOL-Unit scripts? I don't know that you need it built into the language, since you could just specify some special argument your scripts look for. E.g. some folks load libraries with something like "do/args %mylib.r 'as-lib" and the library itself checks to see if it gets any args. If it sees 'as-lib, it knows it's being loaded by another process. If there are no args, it's being run standalone and executes some tests. I have less-than-half-baked ideas for testing tools and methods, but haven't pursued them yet. --Gregg