Boost your Architecture by Test-Driven Development - 2 days



Kursarrangør: Bouvet
Sted: Bouvet avd Stavanger
          Rogaland, Stavanger
Kursadresse: Laberget 28, 4020 Stavanger (kart)
Type:Åpent kurs / gruppeundervisning
Studie / yrkesutdanning
Undervisningstid: ta kontakt
Varighet: 2 dager
Pris: 12.900

Hands-on training on how to use Test-Driven Development (TDD) to boost architecture of your projects. The course covers writing unit, integration, and end-to-end tests, showing how you can guard and enforce the rules of your architecture.

We show the ways TDD helps with building and improving sustainable architecture. JUnit and Spock frameworks are used in the examples, however, the knowledge gained during the course is easily applicable to other testing libraries.

During the course, attendees will learn about the challenges with maintaining a huge number of tests in a project, and how to avoid usual pitfalls related to that.

Target audience:
Developers, Team Leads, Architects

Day 1.

Introduction
Why do we need tests?
Unit, integration, contract, and end-to-end tests
Inverted test pyramid
TDD/BDD
JUnit
Features and examples
When to use JUnit
Spock
Features and examples
Comparison to other Java testing libraries
Killer features
Parameterized tests
Properly written (unit) tests
Good unit tests
Code smells in unit tests
Patterns

Day 2.

Integration tests (with examples in Spring Boot)
Why do we need integration tests?
Different flavours of integration tests
Setup for integration tests
Testing integration with database
Testing application services
Testing REST
Testing communication with external services