ExUnit vs ScalaTest
ExUnit
hexdocs.pmScalaTest
scalatest.orgSide by side
| Figure | ExUnit | ScalaTest |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Web | — | Yes |
| Windows | — | Yes |
| macOS | — | Yes |
| Linux | Yes | Yes |
| Self-hosted | — | Yes |
| Plans published | 1 | 1 |
| Spec score · Unit Testing Frameworks | 8.3 (#4) | 7.6 (#24) |
| Spec score · Unit Testing | 8.2 (#6) | 7.7 (#14) |
| Assertions | ExUnit.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. |
| Founded | 2012 | 2007 |
| Purpose | ExUnit 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
In their own words
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.