From: listrecv@... Date: 2005-11-15T01:12:16+09:00 Subject: Re: Putting unit test cases in the code - RDoc & UnitTest David, That's a great idea. The only problem is that, let's say FileA and FileB both require FileC. We'd like to run the unit tests for each file separately, and certainly not more than once. With your code, they'll get run recursively, each time they're required. But maybe I could add if ENV["RUN_TESTS"} && $0 == __FILE__ ? Would that do it? And I guess then RDoc would see the class and doc it (it'll ignore the if statement wrapping it, I assume).