We will need to define a project structure similar to the one we did in Chapter 1, Hello, TDD!. This time though, we have IntelliJ at our side, so we can use IntelliJ to create the structure for us. Follow these steps:
From the welcome window for IntelliJ, select Create New Project.
From the next dialog, select Scala from the left-hand margin and SBT from the right hand. Click on Next:
In the next dialog box, enter the project and version. This includes the name of project and its location. Name the project
BaseConversionAPI
. It also asks for version information about Scala and SBT you are using. Leave other options as default for now. Click on Finish.
This will create a project structure similar to the one we had created in Chapter 1, Hello, TDD!. Now add ScalaTest as a dependency in build.sbt
:
libraryDependencies += "org.scalatest" %% "scalatest" % "2.2.6" % "test"
IntelliJ will automatically trigger the SBT tasks to bring in the dependencies as soon as build.sbt
is...