Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

What should we do?#

Sumit Rawal answered on May 24, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • what to do
  • what's this
  • What we are going to do#
  • what to do

  • What should we do?#

    0

    There are several directions we could take when testing our routes (no pun intended ).

    For our purpose, we will define some use cases and then develop some more helper code, which will allow us to fire up our routes and do real HTTP requests and check the database and the responses.

    Testing our routes

    Testing our routes

    An actor for starting our routes

    We build upon our BaseSpec class and call it BaseUseCaseSpec. In it, we will do some more things, such as define a global base URL that can be used from the tests to make correct requests. Additionally, we will write a small actor, which simply starts an Akka-HTTP server.

    Popularity 1/10 Helpfulness 1/10 Language scala
    Source: Grepper
    Tags: scala
    Link to this answer
    Share Copy Link
    Contributed on May 24 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.