Registry / testing / specs2-core-3

specs2-core-3

JSON →
library5.9.0javamavenunverified

Core library for specs2, a software testing framework for Scala, targeting Scala 3.

<dependency> <groupId>org.specs2</groupId> <artifactId>specs2-core_3</artifactId> <version>5.9.0</version> </dependency>
INSTALL
IMPORT
SIG · SPECS2-CORE-3
S
specs2-core-3
testingjavav5.9.0
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.

Specification
org.specs2.Specification

Defines a simple specification using specs2.

import org.specs2.Specification class HelloWorldSpec extends Specification { def is = s2""" This is a specification for the 'Hello world' string The 'Hello world' string should contain 11 characters $e1 start with 'Hello' $e2 end with 'world' $e3 """ def e1 = "Hello world" must haveSize(11) def e2 = "Hello world" must startWith("Hello") def e3 = "Hello world" must endWith("world") }
Debug
Known issues
breakingSpecs2 5.x has breaking changes from 4.x, especially in matchers and execution.
fix
Consult the migration guide when upgrading from specs2 4.x.
affects: >=5.0.0
Upgrade
Version history
5.9.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
specs2-core-3 — mvn dependency:get specs2-core-3 · libregistry