pret
New Contributor II

Hi @Debayan Mukherjee​ , thanks, I understand I can write Scala scripts in the notebook, which I already do, but I'm not sure how I can run a scala command line command in databricks? For example, using a 7.3 LTS runtime and the following scala in a notebook:

import org.scalatest._
import org.scalatest.tools.Runner
 
class DBtestSuite extends FeatureSpec with GivenWhenThen {
 
  feature("feature...") {
    scenario("scenario...") {
      Given("given...")
      When("when")
      Then("then...")
      assert(1==2)
    }
  }
}
 
scala -classpath "scalatest_2.12__3.0.8.jar" org.scalatest.tools.Runner -s DBtestSuite

results in error:

error: ';' expected but string literal found.
scala -classpath "scalatest_2.12__3.0.8.jar" org.scalatest.tools.Runner -s DBtestSuite