Skip to content

atruvia/bundesliga-tabelle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java CI with Maven codecov

bundesliga-tabelle

This repository contains code I use in my coachings and/or as showcase. It is intended to represent the constellation that a team develops a frontend and a backend, but the backend obtains the data from a third-party system that we have no control over or can hardly influence.

One idea is that the structure of the tests follows the structure of the production code, which is structured according to Ports & Adapters. So it highlights the following aspects:

  • Ensuring the correct functional logic
  • Ensure the primary adapters (in this case, the only existing http-adapter) works as expected (map the http-request to domain logic, call the domain logic accordingly and maps the result to the http-response)
  • Ensure the secondary adapters (in this case, the only existing http-adapter) works as expected (map the domain-data to the http-request, call the http server accordingly and maps the http-response to the domain-data)

Additionally, it does:

  • PACT contract verification that this backend behaves as expected by the frontend(s)
  • BDD showcase via Cucumber and generate reports out of it
  • Property based tests to have some solitary detail tests
  • ArchUnit architecture tests that the code base is structured as intended
  • Smoke test: Starting the freshly built and dockerized application container and verifies if it answers with HTTP status code 200 and a JSON array payload

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 97.0%
  • Shell 2.0%
  • Gherkin 1.0%