[racket-dev] What command should DrDr run by default?

From: Eli Barzilay (eli at barzilay.org)
Date: Mon Jul 8 09:17:55 EDT 2013

Yesterday, Robby Findler wrote:
> Raco test runs the file if there is not test sub module. Fwiw. 

That's what I thought first, with "run" being the same as what racket
does.  But it doesn't: it just runs the toplevel module as usual when
the file is required (and does so unconditionally, of course), and
then runs a `test' submodule if there is one.  In the files in
question, the tests are running in the `main' module, and raco test
was therefore not running them.

This seems like a fine behavior for raco test, but for drdr, it
*should* run a `main' module if there is one, and if there is no
`test' module.  This avoids the need to abuse a `test' submodule as
some semi-drdr-flag-thing, since files in some "tests" path shouldn't
be required to have a `test' submodule.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!


Posted on the dev mailing list.