Back-end Engineering
Foundations of TDD in Kotlin with JUnit: The Principles
This course introduces Test-Driven Development (TDD) for Kotlin projects, covering the Red-Green-Refactor workflow, TDD mindset, and setup with JUnit. Learn best practices like SOLID principles and dependency injection, and explore TDD's impact on code quality and speed compared to traditional approaches.
JUnit
Kotlin
6 lessons
27 practices
4 hours
Programming, Algorithms, and Data Structures
Lessons and practices
Writing a Failing Test for TDD in Kotlin
Implement the Minimal Sum Function
Refactoring for Improved Readability and Maintainability in TDD
Write a Failing Test for the Sum Method in TDD
Transition to the Green Phase in TDD
Refactor Unit Tests to Use Parameterized Tests with JUnit
Write a Failing Test for Shopping Cart Calculation
Calculate Total Cost in Shopping Cart
Creating a Failing Test for Shopping Cart Total Calculation
Implement the Minimal CalculateTotal Method
Refactoring Cart Implementation in Kotlin
Crafting Test Cases for Cart Total Calculation
Calculate the Total Cost in Shopping Cart
Refactor Using Kotlin's sumOf Method
Refactor and Explore JUnit Testing Environment
Writing JUnit Test Cases for User Class in Kotlin
Refactor UserTest to Use @BeforeEach for User Instance Creation
Group and Nest Email Related Tests
Testing Invalid Email Exception Handling
Email Validation Parameterized Testing in Kotlin
Testing Dependency Injection with UserManager in the Red Phase
Implementing UserManager Class Methods
Refactoring UserManager Test for Clarity
Creating a Logging Feature with Test-Driven Development in Kotlin
Implement Logging Behavior in UserManager's addUser Method
Refactoring UserManager for Clarity and Maintainability
Refactor Test Suite Using the AAA Pattern
Meet Cosmo:
The smartest AI guide in the universe
Our built-in AI guide and tutor, Cosmo, prompts you with challenges that are built just for you and unblocks you when you get stuck.

Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal