Boost your Architecture by Test-Driven Development - Utvidgad

Praktisk träning i hur man använder Test-Driven Development (TDD) för att förstärka arkitekturen i dina projekt. Kursen täcker skrivning av unit-, integrations- och end-to-end-tester, och visar hur du kan skydda och genomdriva reglerna i din arkitektur. Vi visar hur TDD hjälper till att bygga och förbättra hållbar arkitektur. JUnit, Kotest och Spock-ramverk används i exemplen, men kunskapen som erhålls under kursen är lätt tillämpbar på andra testbibliotek. Under kursen kommer deltagarna att lära sig om utmaningarna med att underhålla ett stort antal tester i ett projekt och hur man undviker vanliga fallgropar.

Varaktighet
3 dagar
Nivå
Avancerad
Format

60% workshop /

40% föreläsning

Max deltagare
20
Instruktörer
1
Vem bör delta

Utvecklare och Tech Leads

Viktigaste lärdomar
  • TDD-arbetsflöde med JUnit plus Kotest eller Spock
  • Spring Boot integrationstestning över lager och gränser
  • Testsvit-underhåll för stora kodbaser och hålla koden ren
  • Egenskapsbaserad testning för att utforska edge cases automatiskt
  • Mutationstestning och stödjande verktyg för att verifiera testeffektivitet
Utbildningsprogram

Dag 1

  • Introduction
    • Why do we need tests?
    • Unit, integration, contract, and end-to-end tests
    • Shapes of tests
    • TDD/BDD
  • JUnit
    • Features and examples
    • When to use JUnit
  • Kotest or Spock
    • Features and examples
    • Comparison to other Java testing libraries
    • Killer features
  • Test doubles
    • Dummies
    • Fakes
    • Stubs
    • Mocks
    • Spies
  • Properly written tests
    • Good unit tests
    • Code smells in unit tests
    • Patterns

Dag 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
  • Testing Dates

Dag 3

  • Tests Maintenance
    • Challenges with maintaining a large number of tests
    • Readable and maintainable big suites of tests
  • Keeping codebase clean
  • Property-based testing
  • Mutation testing
  • Other Testing tools

Redo att komma igång?

Kontakta oss för att diskutera dina utbildningsbehov, schema, och hur vi kan anpassa detta program för ditt team.

Boost your Architecture by Test-Driven Development - Utvidgad | Trainitek