
I’m new to contributing to Racket. I’m reading through some of the guides, and I found some tests, but I’m not familiar with them. For example, how might I run a single file such as: racket/pkgs/racket-test-core/tests/racket/string.rktl

Hmm… invoking (load "string.rktl")
seemed to work

I anticipate a few scenarios: 1. test a single file 2. test a directory/package 3. test the entire repo to make sure I didn’t break the build before submitting a pull request How are these scenarios handled? I haven’t found anything in the docs that explain it.

Yes, you can load those individual “.rktl” files. I usually use -f
: racket -f string.rktl

The test.rkt
module loads all of them.

Note also that you might find racket -f quiet.rktl string.rktl
nicer to use.

If you want to test “all the core racket tests” then racket -l tests/racket/test
will do it. You could also look at the list of tests in the GitHub Actions config for more tests to run.

what is the .rktl file extension for?