...
Note that for building an application, you only need to include the CDAP API in your dependencies. For testing, however, you need the CDAP run-time. To build your test case, extend the TestBase
class.
Running Tests with
...
Spark
The TestBase
class included in the cdap-unit-test3_2.12
dependency will run programs using Spark2 Spark and Scala 2.12.
Running Tests from an IDE
...