Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2022 02:57 AM
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 DBtestSuiteresults in error:
error: ';' expected but string literal found.
scala -classpath "scalatest_2.12__3.0.8.jar" org.scalatest.tools.Runner -s DBtestSuite