Racket: How do I make the -s option for "raco test"?

According to the docs for raco test there is the -s , which will check submodules with names other than test . But I can not do this job. If I have the following file:

 ;; example.rkt #lang racket (module foo racket (display "Hi, I'm running!")) 

Then, trying to pass foo , since the submodule name raco test results in:

 $ raco test example.rkt -s foo testing example.rkt test: Given path #<path:-s> does not exist context...: /Applications/Racket v5.3.3/collects/compiler/commands/test.rkt: [running body] /Applications/Racket v5.3.3/collects/raco/raco.rkt: [running body] /Applications/Racket v5.3.3/collects/raco/main.rkt: [running body] 

If I just use the name test :

 ;; example.rkt #lang racket (module test racket (display "Hi, I'm running!")) 

Then raco test works fine:

 $ raco test example.rkt testing example.rkt Hi, I'm running! 

But I really want to have some test suites that I selectively run with various raco test calls.

+4
source share
1 answer

Try passing the flag before the file name. Like this:

 $ raco test -s foo example.rkt 
+6
source

Source: https://habr.com/ru/post/1483999/


All Articles