concept test in category scalatra

appears as: tests, tests, test, test, The test, The tests
Scalatra in Action

This is an excerpt from Manning's book Scalatra in Action.

  • test—Runs your application’s tests
  • Where are the tests?

    You may have noticed that we’re not using any automated tests here. You can find a short introduction in section 2.7. In chapter 8 you’ll see how to write tests in Scalatra in detail.

    Figure 2.11. You’ve got tests!
    [info] FoodServletWordSpec:
    [info] GET /foods/potatoes on FoodServlet
    [info] - must return status 200
    [info] - must be JSON
    [info] - must should have name potatoes
    [info] ScalaTest
    [info] Run completed in 1 second, 187 milliseconds.
    [info] Total number of tests run: 3
    [info] Suites: completed 1, aborted 0
    [info] Tests: succeeded 3, failed 0, canceled 0, ignored 0, pending 0
    [info] All tests passed.
    [info] Passed: Total 3, Failed 0, Errors 0, Passed 3
    [success] Total time: 1 s, completed Aug 18, 2014 3:03:00 AM