Integrating ReactiveMongo in Play framework tests

1,395 views
Skip to first unread message

Pia Ylitalo

unread,
May 10, 2013, 9:38:17 AM5/10/13
to reacti...@googlegroups.com
What is your experience of integrating ReactiveMongo in Play framework (2.1.1) tests?

In this blog (http://cupofjava.de/blog/2012/11/09/integration-tests-with-mongodb-and-play-framework-2/) they mention three different implementations jmockmongo, nosqlunit and embedmongo, where the two first are in-memory implementations.

In general i prefer in-memory implementations but I have no clue if these are the best ones to choose from? Is it better to choose the embedded one? Do you know of any other implementation that I've missed, please let me know!

I'm new to both Play and Mongo.

Barnabás Südy

unread,
May 10, 2013, 1:41:50 PM5/10/13
to reacti...@googlegroups.com


--
You received this message because you are subscribed to the Google Groups "ReactiveMongo - http://reactivemongo.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reactivemong...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Barnabás Südy

unread,
May 10, 2013, 1:59:14 PM5/10/13
to reacti...@googlegroups.com
Hi Pia,

I have just started a pet project to learn mongodb/reactivemongo/scala in what I'm using embedmongo and it works well so far.
I wrote a blog post as well: http://moresbycoffee.blogspot.co.uk/2013/05/integration-testing-reactivemongo.html . I hope it can help.

Regards,
Barnabas Sudy


On 10 May 2013 14:38, Pia Ylitalo <pia.y...@citerus.se> wrote:

Jun Yamog

unread,
May 11, 2013, 9:13:32 PM5/11/13
to reacti...@googlegroups.com

I have a few tests that uses mongo.  Most of the test uses Mockito which is in specs2.  Seems to be ok and must more faster, less teardown and setup time.

jakob dobrzynski

unread,
Jun 25, 2013, 7:39:27 AM6/25/13
to reacti...@googlegroups.com
@Barnabás Südy Nice example. Thank you! Do you have any more? Maybe some Gist?
@Jun Yamog. Do you have any examples?

Thank you,
Jakob

Cédric Chantepie

unread,
Sep 27, 2014, 10:38:58 AM9/27/14
to reacti...@googlegroups.com
You can give a try to module of Acolyte to unit test code based on ReactiveMongo, being able to provide to this kind of persistence code testing MongoDrivers managed by connection handlers (returning query/write result required for test cases): https://github.com/cchantep/acolyte/tree/master/reactive-mongo .
Reply all
Reply to author
Forward
0 new messages