Giter Club home page Giter Club logo

showcase's Introduction

Showcase

Build Status codecov Codacy Badge Code Inspector Lines of code Duplicated Lines (%)

Showcase with a minimal spring boot application showing what you can do with a little bit of extra testing

Architecture Tests

Define coding rules that will support your team to maintain a certain standard of quality architecture. What can you do?

  • Verify that controller only return Responseentities
  • Verify that boundary methods are always annotated with @Transactional
  • Verify that controllers can only access boundaries, but not repositories (Layerchecks)
  • And a lot more (see implemented architecture tests)

Architecture tests are implemented with https://www.archunit.org/

Mutation Tests

Is your software bug-free if you can reach 100% test coverage? For sure not. Mutation testing is simple. Take your tests as they are, add bugs to the source code, and see if your tests will still be green. This is an excellent way to discover missing test cases even if your code is covered by tests.

  • Automatically mutate your source code and let's check if your tests would fail and catch that mutation
  • Simulate a lot of different mutations on all possible code lines
  • Simply run gradle pitest and see a nice html report generated within minutes

Mutation testing is implemented with https://pitest.org/

Automated Pojo Testing

Do not waste time writing boring and repeating tests. Go one step further and autogenerate simple tests for all of your plain old java objects (pojo).

  • Verify that setters and getters exists
  • Verify that setters and getters do not have any side effects.
  • Verify that equal and hashcode implementations work as expected
  • even if you add new fields to your pojo.

Automated Pojo testing is implemented with https://github.com/OpenPojo/openpojo and https://jqno.nl/equalsverifier/

Credits

This showcase was sponsored by my current employer Novatec Consulting GmbH https://www.novatec-gmbh.de/en/

showcase's People

Contributors

benjamineckstein avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.