Re: [akka-user] Maven Testkit Integration
Hi David, correct - maven can run ScalaTest tests just as well as it can run junit / testng. Think of it this way: Akka’s TestKit is like a set of methods / “matchers”, like fest-assert in java land. You don’t run fest-assert / hamcrest “tests”, you just use them in your junit / testng tests. The same applies to Akka’s testkit - it’s not the runner, just a set of methods that help testing async / actor based code. Here’s info on getting scalatest to run under maven: http://www.scalatest.org/user_guide/using_the_scalatest_maven_plugin happy hakking! — k On 3 December 2014 at 01:12:04, David (davidlu...@gmail.com) wrote: Thank you ktoso. I am coming from a pure Java background where my group is comfortable with a set of junit tests that can get run in our Continuous Integration Build. In our first Akka/Scala project, we are looking for something in the Scala/Akka world that can where our CI can automatically run tests that we write ( I looked at TestKit first ). So I wrote some simple tests but then my next question was, How do I get maven to run this? Actually, you're comments have made me search further online while I write this and I am now guessing that another way of putting what you said is that Maven can kick off ScalaTest tests, where these tests use TestKit to do synchronous tests/get underlying actor variables, etc. http://doc.akka.io/docs/akka/2.0.1/scala/testkit-example.html Is this correct? On Tuesday, December 2, 2014 6:47:26 PM UTC-5, Konrad Malawski wrote: Hello David, I'm not sure what you mean since Akka's TestKit is just an utility class which you can use to write your own asynch actor tests. It's not a test runner etc - we use ScalaTest to run tests for example but you could as well use Specs2 - TestKit does not depend on any of the frameworks. Let me know if you'd need more hints or if this solves your problem On Wed, Dec 3, 2014 at 12:34 AM, David david...@gmail.com wrote: Hi, I am searching for a pom.xml file that triggers Akka Scala TestKit tests. Something like mvn test will cause my TestKit tests to execute. Has anyone successfully done this? Most of the projects I have downloaded from Github use SBT/Specs2. Desperate. Thanks -- Read the docs: http://akka.io/docs/ Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups Akka User List group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com. To post to this group, send email to akka...@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout. -- Cheers, Konrad 'ktoso' Malawski hAkker @ Typesafe -- Read the docs: http://akka.io/docs/ Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups Akka User List group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout. -- Konrad 'ktoso' Malawski hAkker @ typesafe http://akka.io -- Read the docs: http://akka.io/docs/ Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups Akka User List group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
Re: [akka-user] Dead letters from akka-http flow in sbt multi-jvm test
Hi Allan, with streams there are plenty situations where you'll get deadletters which are actually harmless (such as the one you just got). We discussed this in a recent github issue https://github.com/akka/akka/issues/15163 and came up with a way to suppress such known not interesting dead letters, it's implemented as: https://github.com/akka/akka/pull/16413 As we release Akka 2.3.8 which will include the above fix, we can make streams use this to silence dead letters we know won't be of interest. Long story short - once we release 2.3.8, the next streams release after that will produce less dead letters noise :-) Hope this helps and thanks for the feedback! On Tue, Dec 2, 2014 at 10:18 PM, Allan Brighton allane...@gmail.com wrote: Hi all, I'm using the sbt multi-jvm plugin for a test involving the experimental akka-http (0.11) package. The tests all pass, but on shutdown, I get lots of log warnings like this: [JVM-2] [WARN] [12/02/2014 22:01:45.560] [TestSpec-akka.actor.default-dispatcher-15] [akka://TestSpec/user/$c/flow-3-0-iterable] received dead letter from Actor[akka://TestSpec/user/$c/flow-3-0-iterable/$a#-1482078752]: Terminated(Actor[akka://TestSpec/user/$c/flow-3-0-iterable/$a#-1482078752]) Is there some way to clean up when shutting down the test or is there something else going on? It looks like a Terminated message is coming from the internal actors used in the flows. -- Allan -- Read the docs: http://akka.io/docs/ Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups Akka User List group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout. -- Cheers, Konrad 'ktoso' Malawski hAkker @ Typesafe -- Read the docs: http://akka.io/docs/ Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups Akka User List group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
[akka-user] Mixing akka 2.10 and 2.11 builds in a remoting context
Hi hAkkers, is it possible to mix the scala 2.10 and 2.11 builds of akka 2.3.7 in a remoting context? My application uses scala 2.11 and hence I included the 2.11 build of akka 2.3. Now, I want to use an embedded neo4j, that is build against scala 2.10.4. However neo4j will only be used in a remote part as a separate analysis worker. It would be no problem to build only this part against 2.10 and leave the rest of the application on 2.11. Is this going to work or do I run into (de)serialization issues? Has anyone already done something like this? Cheers, Steffen -- Read the docs: http://akka.io/docs/ Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups Akka User List group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout. signature.asc Description: Message signed with OpenPGP using GPGMail
[akka-user] Experience with IKVM cross-compiled AKKA in .NET (C#)
Hello, after some weeks playing with AKKA/Java and cross-compiled AKKA for .NET, I've got the cluster-example running and actors from both platforms do communicate with each other. We have an old Project which processes some data-files which we want to redesign. We are considering using AKKA in cluster, and programming kind of user-agents based on actors. Since the actual implementation is .NET based, we want to keep the GUI-Client and we MUST use some .NET libraries. Some parts will be implemented in Java. My question are: 1) does anyone had this kind of experience using Akka for both platforms JVM/.NET? 2) how can one execute the AKKA Unit-Tests after cross-compiling for .NET? This implies building the Akka and its Unit-Test by myself? I want to be sure that these tests run under IKVM version as well. Since I'm not familiar with Scala/ScalaTest any help here would be greatly appreciated Thanks in advance! Asdren -- Read the docs: http://akka.io/docs/ Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups Akka User List group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
[akka-user] Maven, scala, akka - version mismatch
Hello, I have a question which is only slightly akka-related but this forum has been a great help to me so I'm asking anyway :) I am running the alchim31 maven-scala plugin to build my scala / akka application. In my pom.xml, I have this: dependency groupIdcom.typesafe.akka/groupId artifactIdakka-actor_2.10/artifactId version${akka.version}/version scopeprovided/scope /dependency If I comment out this dependency, the plugin still builds! Does Akka come bundled with Scala itself? Also, I am forcing scala version 2.10.4 in the plugin but still get complaints about [WARNING] com.typesafe.akka:akka-actor_2.11:2.3.6 requires scala version: 2.11.2 Thanks -- Read the docs: http://akka.io/docs/ Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups Akka User List group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
[akka-user] Maven, scala, akka - version mismatch
Try running mvn dependency:tree (before and after commenting out). It will show you exactly how you get each library. Most probably you're getting akka 2.3.X for scala 2.11 as a transitive dependency. -- Read the docs: http://akka.io/docs/ Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups Akka User List group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.