Specs2RouteTest equivalent for Akka HTTP

93 views
Skip to first unread message

Everson Alves da Silva

unread,
Aug 17, 2015, 10:38:58 PM8/17/15
to Akka User List
Hi,

We are starting a new project at work and we chose to use Akka HTTP for the API. So far everything is working as expected and the docs/tutorials for spray work without changes or with minimal changes.

However, now that we want to add integration tests for the routes, the examples that fits our needs in spray are done using Specs2RouteTest or Scalatest. We have a somewhat large codebase that uses Specs2 and don't want to introduce Scalatest. Is there an equivalent for Specs2RouteTest on Akka HTTP?

Regards,


Johannes Rudolph

unread,
Aug 18, 2015, 3:29:08 AM8/18/15
to Akka User List
Hi,

specs2 testing support hasn't been ported from spray yet. The basic issue is that akka modules weren't allowed to depend on Scala dependencies because of bootstrapping issues when releasing a new Scala version that includes Akka. I'm not completely sure if this is still the most recent information on the topic so I created https://github.com/akka/akka/issues/18246 to clarify the issue.

Thanks for the report,
Johannes

Adam Shannon

unread,
Aug 18, 2015, 10:02:02 AM8/18/15
to Akka User
FYI If you want to add a class to your application here's an example: https://gist.github.com/adamdecaf/f83c7000d1b69bc29c4d

--
>>>>>>>>>> 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.



--
Adam Shannon | Software Engineer | Banno | Jack Henry
206 6th Ave Suite 1020 | Des Moines, IA 50309 | Cell: 515.867.8337

Johannes Rudolph

unread,
Aug 18, 2015, 10:23:11 AM8/18/15
to akka-user
Thanks Adam.
> You received this message because you are subscribed to a topic in the
> Google Groups "Akka User List" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/akka-user/Ml1pM652_e8/unsubscribe.
> To unsubscribe from this group and all its topics, 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.



--
Johannes

-----------------------------------------------
Johannes Rudolph
http://virtual-void.net

Everson Alves da Silva

unread,
Aug 18, 2015, 10:38:04 AM8/18/15
to Akka User List
Awesome, I will give that a try. Thanks Adam. 
Reply all
Reply to author
Forward
0 new messages