Testing on the Racket track

Learn how to test your Racket exercises on Exercism


You can run the provided tests through DrRacket, or via the command line.

To run the test through DrRacket, simply open the test file and click the 'Run' button in the upper right.

To run the test from the command line, simply run the test from the exercise directory. For example, if the test suite is called hello-world-test.rkt, you can run the following command:

raco test hello-world-test.rkt

which will display the following:

raco test: (submod "hello-world-test.rkt" test)
2 success(es) 0 failure(s) 0 error(s) 2 test(s) run
0
2 tests passed