Skip to content

Commit

Permalink
Bump to v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowers committed Feb 28, 2021
1 parent c337391 commit 8e2bd7f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

A fast Apache Spark testing helper library with beautifully formatted error messages! Works with [scalatest](https://github.com/scalatest/scalatest), [uTest](https://github.com/lihaoyi/utest), and [munit](https://github.com/scalameta/munit).

PySpark codebases should use [chispa](https://github.com/MrPowers/chispa) instead of this library.
Use [chispa](https://github.com/MrPowers/chispa) for PySpark applications.

Read [Testing Spark Applications](https://leanpub.com/testing-spark) for a full explanation on the best way to test Spark code! Good test suites yield higher quality codebases that are easy to refactor.

Expand All @@ -13,14 +13,16 @@ Read [Testing Spark Applications](https://leanpub.com/testing-spark) for a full
Fetch the JAR file from Maven.

```scala
libraryDependencies += "com.github.mrpowers" %% "spark-fast-tests" % "0.21.3" % "test"
// for Spark 3
libraryDependencies += "com.github.mrpowers" %% "spark-fast-tests" % "1.0.0" % "test"

// for Spark 2
libraryDependencies += "com.github.mrpowers" %% "spark-fast-tests" % "0.23.0" % "test"
```

Here's a link to the [Scala 2.11 JAR files](https://repo1.maven.org/maven2/com/github/mrpowers/spark-fast-tests_2.11/) and the [Scala 2.12 JAR files](https://repo1.maven.org/maven2/com/github/mrpowers/spark-fast-tests_2.12/). [Here's a link to all the legacy JAR files in Maven](https://mvnrepository.com/artifact/MrPowers/spark-fast-tests?repo=spark-packages).

You should use Scala 2.11 with Spark 2 and Scala 2.12 with Spark 3. The `libraryDependencies += "com.github.mrpowers" %% "spark-fast-tests" % "0.21.3" % "test"` syntax automatically grabs the JAR file that corresponds with the Scala version in your project.

You'll get weird errors if you use a JAR file compiled with Scala 2.11 with a Spark 3 project.
You should use Scala 2.11 with Spark 2 and Scala 2.12 with Spark 3.

## Simple examples

Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ scalafmtOnCompile in Compile := true
organization := "com.github.mrpowers"
name := "spark-fast-tests"

version := "0.23.0"
version := "1.0.0"
crossScalaVersions := Seq("2.12.12")
scalaVersion := crossScalaVersions.value.head
val sparkVersion = "3.0.1"
Expand Down

0 comments on commit 8e2bd7f

Please sign in to comment.