{"repo":"hamvocke/spring-testing","free":true,"listed":false,"github":"https://github.com/hamvocke/spring-testing","clone":"git clone https://github.com/hamvocke/spring-testing.git","description":"A Spring Boot application with lots of test examples","language":"Java","stars":1236,"topics":["spring-boot","testing","test-automation","spring","test-microservices","microservices","test-pyramid","spring-test","tdd"],"license":null,"category":"dev-tools","readme_excerpt":"The Practical Test Pyramid: Spring Boot Edition This repository contains a Spring Boot application with lots of test examples on different levels of the Test Pyramid. It shows an opinionated way to thoroughly test your spring application by demonstrating different types and levels of testing. You will find that some of the tests are duplicated along the test pyramid -- concepts that have already been tested in lower-level tests will be tested in more high-level tests. This contradicts the premise of the test pyramid. In this case it helps demonstrating different kinds of tests which is the main goal of this repository. Read the Blog Post This repository is part of a blog posts I wrote about test automation and the test pyramid. I highly recommend you read it to get a better feeling for the purpose of the different kinds of tests in this repository and how you can implement a reliable test suite for a Spring Boot application. Get started 1. Set an API Key as Environment Variable In order to run the service, you need to set the WEATHER API KEY environment variable to a valid API key retrieved from darksky.net openweathermap.org. Note: in a previous version this example used darksky.net as the weather API. Since they've shut down their API for public access, we've since switched over to openweathermap.org A simple way is to rename the env.sample file to .env , fill in your API key from openweathermap.org and source it before running your application: 2. Start a PostgreSQL databa","default_branch":null,"files":null,"tree":[],"storefront":"/r/hamvocke","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hamvocke/spring-testing/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}