https://github.com/s2obcn/testing-restapi-poc
Unit testing, Integration testing and Performance testing of a REST API Web Service.
https://github.com/s2obcn/testing-restapi-poc
gradle java spring-boot testing
Last synced: 3 months ago
JSON representation
Unit testing, Integration testing and Performance testing of a REST API Web Service.
- Host: GitHub
- URL: https://github.com/s2obcn/testing-restapi-poc
- Owner: s2oBCN
- Created: 2016-12-27T01:05:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-31T08:28:21.000Z (over 9 years ago)
- Last Synced: 2025-01-25T00:46:20.558Z (over 1 year ago)
- Topics: gradle, java, spring-boot, testing
- Language: Java
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
The intention of this article is to provide a simple sample of testing a REST API Web Service. The code of this sample can be found at https://github.com/s2oBCN/testing-restAPI-PoC
In the sample we will use this technological stack:
* Gradle [https://gradle.org/]: it is a tool to automate the build process. There are a lot of comparatives between Maven and Gradle, in our case we choose Gradle because of its incremental compilation, smart testing (if a project has nothing changed then the tests will not be re-executed) and for its Groovy scripting, within you can do some cool things like:
* Spring boot 1.4 [http://codecentric.github.io/spring-boot-admin]: maybe the easiest way to bootstrapping a JEE application.
* Spock 1.0 [http://spockframework.org/]: it is a Groovy test framework that also can be used to test java applications. It is cool because of its expressive DSL, but it’s needed to use it to see all its power.
* Cucumber 1.2 [https://cucumber.io/]: because we will use BDD with Java, and we want our Bussines Analyst to review the Scenarios.
* Serenity 1.1 [http://www.thucydides.info/]: because of its IOC ready to use and its reports.
* Rest Assured 3.0 [http://rest-assured.io/]: because of its fluent way of testing a web service.
* Gatling 2.2 [http://gatling.io/]: incredibly easy to modify the configuration in order to test differents parameters of performance.