Download specs2_2.10.0-RC5 JAR file with all dependencies
specs2_2.10.0-RC2 from group org.specs2 (version 1.12.2)
specs2
catalysts-specs2_2.10 from group org.typelevel (version 0.0.3)
specs2
doobie-contrib-specs2_2.10 from group org.tpolecat (version 0.3.0)
Specs2 support for doobie.
doobie-contrib-specs2_2.11 from group org.tpolecat (version 0.3.1-M1)
Specs2 support for doobie.
unfiltered-specs2_2.11 from group net.databinder (version 0.9.0-beta1)
Facilitates testing Unfiltered servers with Specs2
pact-jvm-consumer-specs2_2.10 from group au.com.dius (version 2.4.12)
pact-jvm-consumer-specs2
========================
## Specs2 Bindings for the pact-jvm library
## Dependency
In the root folder of your project in build.sbt add the line:
```scala
libraryDependencies += "au.com.dius" %% "pact-jvm-consumer-specs2" % "3.2.2"
```
or if you are using Gradle:
```groovy
dependencies {
testCompile "au.com.dius:pact-jvm-consumer-specs2_2.11:3.2.2"
}
```
__*Note:*__ `PactSpec` requires spec2 3.x. Also, for spray users there's an incompatibility between specs2 v3.x and spray.
Follow these instructions to resolve that problem: https://groups.google.com/forum/#!msg/spray-user/2T6SBp4OJeI/AJlnJuAKPRsJ
## Usage
To author a test, mix `PactSpec` into your spec
First we define a service client called `ConsumerService`. In our example this is a simple wrapper for `dispatch`, an HTTP client. The source code can be found in the test folder alongside the `ExamplePactSpec`.
Here is a simple example:
```
import au.com.dius.pact.consumer.PactSpec
class ExamplePactSpec extends Specification with PactSpec {
val consumer = "My Consumer"
val provider = "My Provider"
override def is = uponReceiving("a request for foo")
.matching(path = "/foo")
.willRespondWith(body = "{}")
.withConsumerTest { providerConfig =>
Await.result(ConsumerService(providerConfig.url).simpleGet("/foo"), Duration(1000, MILLISECONDS)) must beEqualTo(200, Some("{}"))
}
}
```
This spec will be run along with the rest of your specs2 unit tests and will output your pact json to
```
/target/pacts/<Consumer>_<Provider>.json
```
0 downloads
scalatra-specs2_2.8.2.RC1 from group org.scalatra (version 2.0.0.RC1)
Specs2 support for the Scalatra test framework
catalysts-specs2_2.12.0-RC1 from group org.typelevel (version 0.0.3)
specs2
0 downloads
play-specs2_2.11 from group com.typesafe.play (version 2.5.4)
Play-Specs2
scalatra-specs2_2.9.0-1 from group org.scalatra (version 2.1.0.M1)
Specs2 support for the Scalatra test framework
specs2_2.9.2 from group org.specs2 (version 1.12.4.1)
specs2
specs2_2.11.0-M7 from group org.specs2 (version 2.3.7)
specs2
specs2_2.9.1 from group org.specs2 (version 1.12.4)
specs2
specs2_2.11.0-RC3 from group org.specs2 (version 2.3.10)
specs2
pact-jvm-consumer-specs2_2.10 from group au.com.dius (version 2.4.15)
pact-jvm-consumer-specs2
========================
## Specs2 Bindings for the pact-jvm library
## Dependency
In the root folder of your project in build.sbt add the line:
```scala
libraryDependencies += "au.com.dius" %% "pact-jvm-consumer-specs2" % "3.2.2"
```
or if you are using Gradle:
```groovy
dependencies {
testCompile "au.com.dius:pact-jvm-consumer-specs2_2.11:3.2.2"
}
```
__*Note:*__ `PactSpec` requires spec2 3.x. Also, for spray users there's an incompatibility between specs2 v3.x and spray.
Follow these instructions to resolve that problem: https://groups.google.com/forum/#!msg/spray-user/2T6SBp4OJeI/AJlnJuAKPRsJ
## Usage
To author a test, mix `PactSpec` into your spec
First we define a service client called `ConsumerService`. In our example this is a simple wrapper for `dispatch`, an HTTP client. The source code can be found in the test folder alongside the `ExamplePactSpec`.
Here is a simple example:
```
import au.com.dius.pact.consumer.PactSpec
class ExamplePactSpec extends Specification with PactSpec {
val consumer = "My Consumer"
val provider = "My Provider"
override def is = uponReceiving("a request for foo")
.matching(path = "/foo")
.willRespondWith(body = "{}")
.withConsumerTest { providerConfig =>
Await.result(ConsumerService(providerConfig.url).simpleGet("/foo"), Duration(1000, MILLISECONDS)) must beEqualTo(200, Some("{}"))
}
}
```
This spec will be run along with the rest of your specs2 unit tests and will output your pact json to
```
/target/pacts/<Consumer>_<Provider>.json
```
0 downloads
Page 3 from 5 (items total 73)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy