Testing Spark Jobs with test cases
Follow the same steps described in Testing Jobs and Services using test cases to create a Spark test case. A dedicated test skeleton is available for Spark Jobs.
By default, a Spark Test Skeleton includes:
-
One or more tFixedFlowInput components (or tBoundedStreamInput for a Spark Streaming Job), depending on the number of input flows in the Job, to load the input files.
-
The read-only INPUT and OUTPUT icons that are used to indicate the beginning and the end of the part to be tested.
-
One or more tCollectAndCheck components, depending on the number of output flows in the Job, to compare the temporary output files with the reference files. The test passes if the files are identical, and fails otherwise.
For more information about Continuous Integration and implementation with Talend, see the Software Development Life Cycle best practices guide.