Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/marc0der/play-scala-cucumber-seed
- Owner: marc0der
- License: other
- Created: 2016-10-26T22:03:26.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-03T22:05:44.000Z (about 8 years ago)
- Last Synced: 2024-10-15T15:31:25.207Z (3 months ago)
- Language: Scala
- Size: 20.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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!!!