Registry / testing / scalatest

scalatest

JSON →
library1.0.1javamavenunverified

ScalaTest is a free, open-source testing toolkit for Scala and Java programmers.

<dependency> <groupId>org.scalatest</groupId> <artifactId>scalatest</artifactId> <version>1.0.1</version> </dependency>
INSTALL
IMPORT
SIG · SCALATEST
S
scalatest
testingjavav1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AnyFlatSpec
org.scalatest.flatspec.AnyFlatSpec

Basic ScalaTest flat spec example

import org.scalatest.flatspec.AnyFlatSpec class ExampleSpec extends AnyFlatSpec { "A Stack" should "pop values in last-in-first-out order" in { val stack = new Stack[Int] stack.push(1) stack.push(2) assert(stack.pop() === 2) assert(stack.pop() === 1) } }
Debug
Known issues
breakingScalaTest 1.0.1 is very old; consider using a newer version for Scala 2.13/3 compatibility.
fix
Upgrade to a recent ScalaTest version (e.g., 3.2.x) for your Scala version.
affects: < 3.0.0
Upgrade
Version history
1.0.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
scalatest — mvn dependency:get scalatest · libregistry