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: 63a4414863
This commit is contained in:
parent
6a69441d84
commit
5868d51521
|
@ -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 <name> (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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user