From 5868d51521b3c08224a3a9cf5ae310acdb50a7da Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Thu, 29 Mar 2012 14:37:00 -0600 Subject: [PATCH] make `--run-if-absent' the default mode for `raco test' This convention makes it easier to deal with a set of ".rkt" files that implement tests, while a `test' module implements a `main'-like split for some of the files. original commit: 63a4414863eb69da7597a539102e020a2df8f590 --- collects/compiler/commands/test.rkt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/collects/compiler/commands/test.rkt b/collects/compiler/commands/test.rkt index d0d6c33df6..082b028536 100644 --- a/collects/compiler/commands/test.rkt +++ b/collects/compiler/commands/test.rkt @@ -5,7 +5,7 @@ raco/command-name) (define submodule 'test) -(define run-anyways? #f) +(define run-anyways? #t) (define (do-test e [check-suffix? #f]) (match e @@ -37,7 +37,10 @@ "Runs submodule (defaults to `test')" (set! submodule (string->symbol name))] [("--run-if-absent" "-r") - "Require base module if submodule is absent" + "Require module if submodule is absent (on by default)" (set! run-anyways? #t)] + [("--no-run-if-absent" "-x") + "Require nothing if submodule is absent" + (set! run-anyways? #f)] #:args file-or-directory (for-each do-test file-or-directory))