Forrest logo
back to the raco tool

raco:tldr:6e3bb

raco: Run tests in files.
$ raco test ${path-to-tests1-rkt path-to-tests2-rkt ---}
try on your machine

The command raco test ${path-to-tests1-rkt path-to-tests2-rkt ---} is used to run tests in the Racket programming language.

Here's a breakdown of the different components of the command:

  • raco test: This is the command-line tool provided by Racket to run tests. It executes the tests contained in the specified files.
  • ${path-to-tests1-rkt path-to-tests2-rkt ---}: This portion specifies the path to the test files that should be executed. ${...} is used to indicate a placeholder that should be replaced with the actual paths to the test files. Multiple test files can be included by separating them with spaces. The --- at the end is used to indicate the end of the list of test files.

For example, if you have two test files named test1.rkt and test2.rkt, the command raco test test1.rkt test2.rkt will run the tests contained in both files. Replace ${path-to-tests1-rkt path-to-tests2-rkt ---} with the actual paths to the test files you want to run.

Note that the paths to the test files should be relative to your current working directory or can be absolute paths.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the raco tool