GithubHelp home page GithubHelp logo

evolution-gaming / akka-test Goto Github PK

View Code? Open in Web Editor NEW
0.0 13.0 0.0 24 KB

Set of useful tests for akka dependent porjects

License: MIT License

Scala 100.00%
akka akka-http akka-actor test scalatest

akka-test's Introduction

akka-test

travis-ci github-actions scoverage codacy bintray license: MIT

This library is created in order to provide reusable set of tests to be used in projects dependent on Akka libraries. For instance to prevent following "surprise" at runtime:

java.lang.IllegalStateException: Detected possible incompatible versions on the classpath. Please note that a given Akka HTTP version MUST be the same across all modules of Akka HTTP that you are using, e.g. if you use [10.1.11] all other modules that are released together MUST be of the same version. Make sure you're using a compatible set of libraries. Possibly conflicting versions [10.1.9, 10.1.11] in libraries [akka-http-spray-json:10.1.9, akka-parsing:10.1.11, akka-http-xml:10.1.11, akka-http:10.1.11, akka-http-core:10.1.11]
	at akka.util.ManifestInfo.checkSameVersion(ManifestInfo.scala:206)
	at akka.util.ManifestInfo.checkSameVersion(ManifestInfo.scala:173)
	at akka.http.scaladsl.HttpExt.<init>(Http.scala:75)
	at akka.http.scaladsl.Http$.createExtension(Http.scala:1123)
	at akka.http.scaladsl.Http$.createExtension(Http.scala:892)
	at akka.actor.ActorSystemImpl.registerExtension(ActorSystem.scala:1151)
	at akka.actor.ExtensionId.apply(Extension.scala:78)
	at akka.actor.ExtensionId.apply$(Extension.scala:77)
	at akka.http.scaladsl.Http$.apply(Http.scala:1118)

Tests:

  • akka modules are of same version

Usage

resolvers += Resolver.bintrayRepo("evolutiongaming", "maven")

libraryDependencies += "com.evolutiongaming" %% "akka-test-actor" % "0.0.2" % Test

And just drop this test into your project

import com.evolutiongaming.akkatest.AkkaActorSuite

class AkkaActorTest extends AkkaActorSuite

Tests:

  • akka-http modules are of same version

Usage

Add dependency

resolvers += Resolver.bintrayRepo("evolutiongaming", "maven")

libraryDependencies += "com.evolutiongaming" %% "akka-test-http" % "0.0.2" % Test

And just drop this test into your project

import com.evolutiongaming.akkatest.AkkaHttpSuite

class AkkaHttpTest extends AkkaHttpSuite

Setup

resolvers += Resolver.bintrayRepo("evolutiongaming", "maven")

libraryDependencies += "com.evolutiongaming" %% "akka-test-actor" % "0.0.2"

libraryDependencies += "com.evolutiongaming" %% "akka-test-http" % "0.0.2"

akka-test's People

Contributors

mr-git avatar t3hnar avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.