LARA

Using sbt

sbt is the tool you will use to compile and test your code locally. All commands must be entered from the project folder (i.e. projectXX). If you haven't installed sbt yet, refer to the Setup page.

Entering the sbt REPL

With your terminal located in the project folder, enter the command:

sbt

Now, you are in the sbt REPL, in which you can issue sbt commands. If this command doesn't work, please refer to the setup instructions.

Compiling

Once in the sbt REPL, you can issue the following command to compile your code:

compile

Testing

Once in the sbt REPL, you can issue the following command to locally test your code:

test

Note that the tests used to grade your code on the server might differ from the ones provided to you locally. We encourage you, once all tests are working locally, that you test your code on the grading infrastructure.

Exiting the sbt REPL

To exit the sbt REPL, enter the following command:

exit