Skip to content
SPECIFICTION
Get listed

ExUnit vs ScalaTest

ExUnit

hexdocs.pm

ScalaTest

scalatest.org

Side by side

FigureExUnitScalaTest
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
Web—Yes
Windows—Yes
macOS—Yes
LinuxYesYes
Self-hosted—Yes
Plans published11
Spec score · Unit Testing Frameworks8.3 (#4)7.6 (#24)
Spec score · Unit Testing8.2 (#6)7.7 (#14)
AssertionsExUnit.Assertions provides macros that generate assertions with appropriate error messages.The documented assertion helpers include assert, assertResult, intercept, compile checks, cancellation, and clues for failure messages.
Founded20122007
PurposeExUnit is a unit testing framework for Elixir.ScalaTest is a testing tool for Scala, Scala.js, Scala Native, Dotty (Scala 3), and Java code.

Plans

ExUnit

  • ExUnitFree

ExUnit pricing →

ScalaTest

  • ScalaTestFree

ScalaTest pricing →

In their own words

ExUnit

ExUnit has no write-up on Specifiction yet; its figures are above.

Visit hexdocs.pm

ScalaTest

ScalaTest is a testing tool for Scala, Scala.js, Scala Native, Dotty (Scala 3), and Java code. It offers several testing styles, and its core components can be extended and combined for projects with particular requirements. Documented assertion helpers include assert, assertResult, intercept, compile checks, cancellation, and clues that add context to failure messages. Matchers cover equality, exceptions, strings and regular expressions, ranges, properties, and Scala and Java collections. Parameterized cases, parallel execution, and property-based checks are supported; built-in mocks are not. Integrations listed by the project include JUnit, TestNG, Ant, Maven, sbt, ScalaCheck, JMock, EasyMock, Mockito, ScalaMock, Selenium, Eclipse, NetBeans, and IntelliJ. ScalaTest Plus provides integration libraries for Play, Selenium, ScalaCheck, JUnit 4 and 5, TestNG, EasyMock, JMock, and Mockito. Installation instructions cover sbt and Maven, with release artifacts available through Sonatype OSS and mirrored on Maven Central. ScalaTest is free and open source under the Apache 2.0 license. The recommended SuperSafe Community Edition compiler plugin supports Scala 2.x, but not Scala 3.x.

Visit scalatest.org