Scala-Pact 1.0.0

56 views
Skip to first unread message

david....@itv.com

unread,
May 27, 2016, 6:33:01 AM5/27/16
to Pact


ITV has been using the excellent Ruby, JS, and Swift Pact tools for quite a while now, and was looking for a solution more tightly integrated with our Scala ecosystem. Assessments of Pact-JVM about six months ago looked promising and convinced us that using Pact with our Scala microservices was worth pursuing. At the time, Pact-JVM didn’t quite offer the Scala / SBT integrated experience we were looking for, so we decided to create our own Scala specific implementation.

Scala-Pact is very nearly Pact Specification V2 compatible, the main feature omission at the moment is body matchers. Our aim is to gradually bring it in line with the standard spec, and keep it compatible with the Ruby tools such as pact broker, which we still use.

The project is still evolving and in daily use by three teams at ITV with others coming on board, so the project is benefitting from a lot of user feedback. Some of our teams also use AMQP extensively so we’re looking at Pact V3 with interest for future work.

We couldn’t have built Scala-Pact without the people in this community that went before us, generously sharing their work and ideas. We hope you find our contribution meaningful and look forward to collaborating with the community in the future.

David Smith 

Ronald Holshausen

unread,
May 27, 2016, 9:03:31 PM5/27/16
to david....@itv.com, Pact
Nice work! I'll update the references at docs.pact.io to add a reference to your github project.

Ron

ITV plc (Registration No. 4967001) (ITV) is incorporated in England and Wales with its registered office at The London Television Centre, Upper Ground, London SE1 9LT. Please visit www.itv.com for further information.

This email and any attachments are intended solely for the addressee and may contain confidential, copyrighted and/or privileged information.  If you have received this message in error, please notify us and delete it.  Recipients should scan the email and any attachments for their own protection. 

This email does not conclude a binding agreement.  The views or opinions presented in this email do not necessarily represent those of ITV.

--
You received this message because you are subscribed to the Google Groups "Pact" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pact-support...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Ronald Holshausen

DiUS Computing Pty Ltd

Level 10, 99 Queens Street
Melbourne, VIC 3000

Phone: +61 3 9008 5400
Mobile: +61 413 162 439

http://www.diuscomputing.com.au

Dave Smith

unread,
May 28, 2016, 6:14:38 AM5/28/16
to Pact, david....@itv.com
Thank you very much Ron.

Dave

Chuan Chuan Law

unread,
Jun 23, 2016, 9:11:20 AM6/23/16
to Pact, david....@itv.com
Hi David,


I have recently posted a question here about using "sbt pact-publish" for consumer test written in pact-jvm-consumer-junit.

Basically, everything ran successfully as shown by the output, but the "interactions" is not generated in the pact file.

Just wondering is there any workaround to enable "sbt pact-test" to run on tests written in Java?

Please shed some light.


Thanks heaps.


Chuan

david....@itv.com

unread,
Jun 27, 2016, 6:43:34 AM6/27/16
to Pact, david....@itv.com

Hi Chuan,

First apologies for the slow reply, I've been attending to some family business.

Pact-JVM and Scala-Pact are two completely separate libraries at the moment, so running sbt pact-test will not output any results from tests suites written using Pact-JVM's test framework.

I think I saw somewhere that Ron and Co. we're planning to create sbt tasks for Pact-JVM but you'll need to ask them. Ron, do you know more about the state of that?

At the moment, if you want to use the Scala-Pact sbt functions you'll need to convert your tests into Scala-Pact format using ScalaTest (should be pretty easy unless you're using body matchers).

Does that help?

Dave

Chuan Chuan Law

unread,
Jun 27, 2016, 9:36:13 AM6/27/16
to Pact, david....@itv.com
Hi David,


Thank you very much for your clarification. 

Yeap, we now know that Pact JVM and Pact Scala are separate entities.


Cheers,

Chuan
Reply all
Reply to author
Forward
0 new messages