Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/marc0der/play-scala-cucumber-seed

A walking skeleton using Cucumber to test a REST health endpoint
https://github.com/marc0der/play-scala-cucumber-seed

Last synced: about 2 months ago
JSON representation

A walking skeleton using Cucumber to test a REST health endpoint

Awesome Lists containing this project

README

        

#Play Scala REST service seed with Cucumber

This template forms the base of a REST microservice.

Testing is performed from outside-in by providing Cucumber and Scalatest.

Feature files can be found in the `features` folder, with step defs living beneath `test/steps`. The Cucumber runtime is bootstrapped by `RunCukes.scala`.

##Testing

A simple end-to-end scenario is provided in the `health.feature`, testing a `HealthController` with an `/alive` endpoint.

To run the Cucumber suite, spin up the service as follows:

$ sbt run

Once running, the tests can be run from within an IDE, or else from the command line using:

$ sbt test

Enjoy!!!