-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specs2 support #485
Comments
That'd be cool, yes :-) Would be excellent if you could PR and maintain it in case of upgrades needed? Yes, separate project is the way to go I think. Would also need docs :) |
Or, if may I suggest, having it completely stand-alone, since supporting a |
Ref (or duplicate) #232 |
@viktorklang having it in this repo might be easier for publishing to maven central.. I'm not familiar with that at all. But if you want I can create a stand-alone project. Or I can just create a blog post with this gist, so ppl know how to test routes with specs2.. So options are:
|
We had support for specs2 in spray-testkit which was just a few lines. I would not be concerned about maintaining it if someone could contribute it and if it would be the same amount of glue code. In spray, we referenced specs2 as a provided dependency so it wouldn't be pulled in automatically. Here's the Scalatest support in akka-http-testkit: Here's the former specs2 support in spray: |
yes, it would be nice to have specs2 support again.
|
PR certainly welcome. We won't get to it personally in the akka team I have a feeling (more urgent things around) |
* Add support for Specs2 tests using the trait Specs2RouteTest in the same form as ScalatestRouteTest
* Add support for Specs2 tests using the trait Specs2RouteTest in the same form as ScalatestRouteTest * Added copyright notices in Specs2Utils and Specs2RouteTestSpec * Updated testkit.md doc to include note about Specs2 support, and linked to the appropriate test (thanks jonas!) * Updated dependencies - moved specs2 to the Test section and added license info Added example use of Testkit with Specs2.
Hi guys, do you plan to support specs2 for testing.
I created simple specs2 support for testing routes. I can create a pull request. I didn't do it now as I'm not sure you would like to have new sub project in sbt etc. This is it also with usage example. Right now I support matchers only on entity as string but doing unmarshalling and also support for http codes etc. It is here https://gist.github.com/fokot/3827d2f0fc2cb02b3c4f65d8344f2f18
The text was updated successfully, but these errors were encountered: