-
Notifications
You must be signed in to change notification settings - Fork 81
Debugging
Lau edited this page Dec 20, 2021
·
12 revisions
Tips and tricks on how to debug code related to the Toit framework.
One can run individual test using the ctest
command:
cd build/host
ctest --verbose -R test_name
ctest
does some matching, so the test name doesn't need to be complete.
The --verbose
flag also gives the full command line that was used to run the command.
Note that some tests require to be run from specific locations. Generally, we only have two important locations, though: the root of the checkout, or the directory the test is in.
make test
discovers the test, so make sure to run make test
before running individual tests.