Boost your Architecture by Test-Driven Development - Udvidet
Praktisk træning i, hvordan man bruger Test-Driven Development (TDD) til at booste arkitekturen af dine projekter. Kurset dækker skrivning af unit-, integrations- og end-to-end tests, og viser hvordan du kan beskytte og håndhæve reglerne i din arkitektur. Vi viser måder, TDD hjælper med at bygge og forbedre bæredygtig arkitektur. JUnit, Kotest og Spock frameworks bruges i eksemplerne, dog er viden opnået under kurset let anvendelig på andre testbiblioteker. Under kurset vil deltagerne lære om udfordringerne ved at vedligeholde et stort antal tests i et projekt, og hvordan man undgår de sædvanlige faldgruber.
60% workshop /
40% forelæsning
Udviklere og Tech Leads
- TDD workflow med JUnit plus Kotest eller Spock
- Spring Boot integrationstest på tværs af lag og grænser
- Testsuite vedligeholdelse for store kodebaser og holde kode ren
- Egenskabsbaseret testning til at udforske edge cases automatisk
- Mutationstest og understøttende værktøjer til at verificere testeffektivitet
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
Klar til at komme i gang?
Kontakt os for at diskutere dine uddannelsesbehov, tidsplan, og hvordan vi kan tilpasse dette program til dit team.









