Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 1.21 KB

scala-setup.md

File metadata and controls

25 lines (15 loc) · 1.21 KB

Scala Setup

  • Clone this project locally git clone [email protected]:nayish/regex-workshop.git
  • In Intellij, Select File > Open... and choose the build.sbt file in the cloned repo.
  • Click Open As Project
  • Click Trust Project (This may take a few minutes ~2m)

Running all tests

You can run the tests for all the steps by running src/test/scala/test/Test.scala.

  • Run them, and you should see 14 failing steps (since we haven't implemented any of them)

Running specific step tests

You can run the tests for a specific step by editing the test configuration and setting Program arguments to be the <step>.

  • Try it now on step 1 (Program arguments: "1"), and you should have one failing test "should have answer for step 1".

In order to solve a step you will need to enter a Regex in the appropriate answer value in ./src/main/scala/solution/Solution.scala.

Now that you are done you can begin with step 1.