CLI
How do I use the CLI?
The CodeCrafters CLI is a command-line tool that allows you to run tests & view test results from your local machine. Using the CLI is faster than using Git since you don’t need to commit your changes to run tests.
If you haven’t installed the CLI yet, read this.
To use the CLI, navigate to a CodeCrafters repository on your local machine and run the codecrafters test
command:
To run tests against all previous stages first, add the --previous
flag:
You should see logs like this:
You can then make changes to your codebase and re-run the tests by running codecrafters test
again. You don’t
need to commit your changes using Git to run tests using the CLI.
Was this page helpful?