badkins
2021-3-23 00:30:25

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


badkins
2021-3-23 00:35:01

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


badkins
2021-3-23 00:48:16

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.


mflatt
2021-3-23 00:52:21

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


mflatt
2021-3-23 00:53:20

The test.rkt module loads all of them.


samth
2021-3-23 01:30:16

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


samth
2021-3-23 01:31:40

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.


jesse697
2021-3-23 06:10:31

what is the .rktl file extension for?