TL;DR: use build.sh
.
- Tests of the Rust code live in
src/
and can be run as usual withcargo test
. - Tests of the compiler on Grace code that do not actually run the code are in
tests/
. Individual files can be run withcargo test --test $NAME_OF_FILE
. - Full output tests must run in a JS environment, and live in
js_test/
. Tests are run usingjest
. Tests of the Rust code live insrc/
and can be run as usual withcargo test
.
Tests of the compiler on Grace code that do not actually run the code are in tests/
. As the name suggests these are mostly used for benchmarking the compiler.
Full output tests must run in a JS environment, and live in js_test/
. Tests are run using jest
.
TL;DR: use coverage.sh
and rust nightly.
flamegraph
is currently used for profiling.