Forrest logo
back to the lein tool

lein:tldr:8f1c9

lein: Run the project's tests.
$ lein test
try on your machine

The command "lein test" is used in the Clojure language to run tests defined in a project. Here's a breakdown of each component:

  • "lein": This is the command-line tool called Leiningen, which is used for managing and building Clojure projects. It provides a range of commands for various development tasks.
  • "test": This is the specific command provided by Leiningen that executes the test suite defined in the project.

When you run "lein test", Leiningen will search for test namespaces or files in your project and execute them. It will then display the test results, showing which tests passed and which failed.

To use this command, you need to have Leiningen installed on your system and navigate to the root directory of your project in the command-line interface. Once there, simply enter "lein test" to initiate the testing process.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the lein tool