an sbt plugin to automatically launch mock services defined within a soapui project
Add plugin to project/plugins.sbt:
resolvers += "TNM" at "http://nexus.thenewmotion.com/content/repositories/releases-public"
addSbtPlugin("com.newmotion" % "sbt-soapui-mockservice" % "0.2.0")For .sbt build definitions, inject the plugin settings in build.sbt:
seq(soapui.settings :_*)For .scala build definitions, inject the plugin settings in Build.scala:
Project(..., settings = Project.defaultSettings ++ com.thenewmotion.sbt.plugins.SoapUIMockServicePlugin.soapui.settings)Plugin keys are located in com.thenewmotion.sbt.plugins.SoapUIMockServicePlugin.Keys
soapui.mockServices := Seq(
soapui.MockService( (resourceDirectory in IntegrationTest).value / "soapui-project.xml", "9001"),
...
)