Download specs2_2.10.0-RC2 JAR file with all dependencies
play-specs2_2.11 from group com.typesafe.play (version 2.5.9)
Play-Specs2
doobie-contrib-specs2_2.10 from group org.tpolecat (version 0.3.0-M1)
Specs2 support for doobie.
pact-jvm-provider-specs2_2.11 from group au.com.dius (version 3.5.0-beta.2)
pact-jvm-provider-specs2
========================
Provides an extension to Specs2 Specification to validate a pact file against a running provider. See
[ExampleProviderSpec.scala](pact-jvm-provider-specs2/src/test/scala/au/com/dius/pact/provider/specs2/ExampleProviderSpec.scala)
for an example.
*Note:* The Pact ProviderSpec requires spec2 3.x
0 downloads
pact-jvm-consumer-specs2_2.11 from group au.com.dius (version 3.5.0-beta.2)
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:
```
libraryDependencies += "au.com.dius" %% "pact-jvm-consumer-specs2" % "2.0.6"
```
## Usage
To author a test, extend `PactSpec`
Here is a simple example:
```
import au.com.dius.pact.consumer.PactSpec
class ExamplePactSpec extends PactSpec {
val consumer = "My Consumer"
val provider = "My Provider"
uponReceiving("a request for foo")
.matching(path = "/foo")
.willRespondWith(body = "{}")
.during { providerConfig =>
ConsumerService(providerConfig.url).simpleGet("/foo") must beEqualTo(200, Some("{}")).await
}
}
```
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
specs2_2.10.1-RC1 from group org.specs2 (version 1.13)
specs2
accord-specs2_2.10 from group com.wix (version 0.6)
Specs² matchers for the Accord validation library
clairvoyance-specs2_2.11 from group com.github.rhyskeepence (version 1.0.119)
clairvoyance-specs2
0 downloads
clairvoyance-specs2_2.10 from group com.github.rhyskeepence (version 1.0.119)
clairvoyance-specs2
0 downloads
specs2_2.11.0-RC1 from group org.specs2 (version 2.3.10-scalaz-7.1.0-M6)
specs2
specs2_2.10.0-RC3 from group org.specs2 (version 1.12.3)
specs2
pact-jvm-consumer-specs2_2.10 from group au.com.dius (version 2.4.11)
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
specs2_2.10.0-RC1 from group org.specs2 (version 1.12.2)
specs2
accord-specs2_2.11 from group com.wix (version 0.5)
Specs² matchers for the Accord validation library
pact-jvm-provider-specs2_2.11 from group au.com.dius (version 3.2.7)
pact-jvm-provider-specs2
========================
Provides an extension to Specs2 Specification to validate a pact file against a running provider. See
[ExampleProviderSpec.scala](pact-jvm-provider-specs2/src/test/scala/au/com/dius/pact/provider/specs2/ExampleProviderSpec.scala)
for an example.
*Note:* The Pact ProviderSpec requires spec2 3.x
0 downloads
catalysts-specs2_2.10 from group org.typelevel (version 0.0.2)
specs2
Page 4 from 5 (items total 72)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy