How to run a single compiler spec


Is there a canonical way to run a single compiler spec?

I would like to just run, but I didn’t find any option in make compiler_spec to run a single spec.

Note: as a workaround I updated spec/compiler/ to include just the spec I want to run

# require "./compiler/**"
require "./compiler/parser/"

Should be able to do it just like you would with a normal spec file. E.g. ./bin/crystal spec spec/compiler/parser/

Also just doing crystal should work fine too


All these work:

./bin/crystal spec spec/compiler/parser/
./bin/crystal spec/compiler/parser/
crystal spec/compiler/parser/

You can also specify a line number to avoid re-running everything (ref)