# holdenk/spark-testing-base

Base classes to use when writing tests with Spark

Repository: https://github.com/holdenk/spark-testing-base
Canonical: https://ross.abutalabs.com/products/spark-testing-base
Language: Scala
License: Apache-2.0
License Family: permissive
Last push: 2026-08-07T22:41:59+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 8, longevity 100
- inputs: {"age_days": 4233, "days_push": 26, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1555, forks 356 (observed 2026-08-28T04:05:03.186603+00:00)

## What it is
A library providing base classes for writing tests for Apache Spark applications in Scala and Python. It handles the setup and teardown of local-mode Spark sessions so developers can focus on writing test logic.

## Use cases
- write unit tests for Spark jobs
- avoid boilerplate SparkContext setup in test suites
- test Spark DataFrames and RDDs
- test Spark SQL codegen
- run Spark tests in sbt or Maven builds

## When to choose
- you're building Spark applications in Scala or Python and need repeatable test infrastructure
- you want shared base classes for local-mode Spark testing across many test suites

## When to avoid
- you don't use Apache Spark
- you need distributed cluster integration testing rather than local-mode tests

## Facets
- artifact type: library
- maturity: active
- function: testing
- domain: testing, developer-tools, big-data
- platform: jvm, python
- tags: apache-spark, unit-testing, local-mode-spark, scala, pyspark

## Member repositories
- holdenk/spark-testing-base (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:03.186603+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:30:01.701798+00:00, confidence not recorded.
  - readme: https://github.com/holdenk/spark-testing-base (fetched 2026-08-28T04:05:03.186603+00:00, sha 869e250cac63)
- Data as of 2026-08-30T08:39:29.467469+00:00.
