https://github.com/evolution-gaming/akka-test
Set of useful tests for akka dependent porjects
https://github.com/evolution-gaming/akka-test
akka akka-actor akka-http scalatest test
Last synced: 2 months ago
JSON representation
Set of useful tests for akka dependent porjects
- Host: GitHub
- URL: https://github.com/evolution-gaming/akka-test
- Owner: evolution-gaming
- License: mit
- Created: 2019-12-12T19:44:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-18T16:28:25.000Z (10 months ago)
- Last Synced: 2025-01-27T19:54:09.062Z (4 months ago)
- Topics: akka, akka-actor, akka-http, scalatest, test
- Language: Scala
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 14
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# akka-test
[](https://travis-ci.org/evolution-gaming/akka-test)
[](https://github.com/evolution-gaming/akka-test/actions?query=workflow%3Aci)
[](https://coveralls.io/r/evolution-gaming/akka-test)
[](https://www.codacy.com/manual/evolution-gaming/akka-test?utm_source=github.com&utm_medium=referral&utm_content=evolution-gaming/akka-test&utm_campaign=Badge_Grade)
[ ](https://bintray.com/evolutiongaming/maven/akka-test-actor/_latestVersion)
[](https://opensource.org/licenses/MIT)This library is created in order to provide reusable set of tests to be used in projects dependent on [Akka](https://akka.io) 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.(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)
```## For [akka-actor](https://doc.akka.io/docs/akka/current/)
Tests:
* akka modules are of same version### Usage
```scala
resolvers += Resolver.bintrayRepo("evolutiongaming", "maven")libraryDependencies += "com.evolutiongaming" %% "akka-test-actor" % "0.0.2" % Test
```And just drop this test into your project
```scala
import com.evolutiongaming.akkatest.AkkaActorSuiteclass AkkaActorTest extends AkkaActorSuite
```## For [akka-http](https://doc.akka.io/docs/akka-http/current)
Tests:
* akka-http modules are of same version### Usage
Add dependency
```scala
resolvers += Resolver.bintrayRepo("evolutiongaming", "maven")libraryDependencies += "com.evolutiongaming" %% "akka-test-http" % "0.0.2" % Test
```And just drop this test into your project
```scala
import com.evolutiongaming.akkatest.AkkaHttpSuiteclass AkkaHttpTest extends AkkaHttpSuite
```## Setup
```scala
resolvers += Resolver.bintrayRepo("evolutiongaming", "maven")libraryDependencies += "com.evolutiongaming" %% "akka-test-actor" % "0.0.2"
libraryDependencies += "com.evolutiongaming" %% "akka-test-http" % "0.0.2"
```