Computer Programming
12 learners
Increasing Code Test Coverage
This course explores how to improve code test coverage and foster a more testable codebase. Increasing code test coverage is essential for ensuring confidence in modifying existing systems. It allows developers to make changes with minimal risk of introducing bugs, by providing a safety net of tests that document existing and desired behaviors.
C#
Moq
.NET Core
xUnit
See path
5 lessons
22 practices
3 hours
Badge for Computer Systems and Architecture,
Computer Systems and Architecture
Lessons and practices
Order Processing with Unit Testing
Adding the First Test to the Order Processor
Add New Test For Multiple Different Items
Adding a Test for Zero Order Items
Ensuring Orders Have Correct Processing Date Set
Adding a Test Confirming Order Item Quantity Limit
Test Demonstrating Discound Behavior
Documenting the Shipping Method Determination
Order Processing Uses Express Shipping for High Quantities
Shipping Rules Make Perfect Sense
Order Processing Edge Case Test
Email Service Dependency Done Right
Email Service Implementing Interface
Exchange Concrete Email Service for an Abstraction
Mock Dependencies in Order Processing
Adding Tests That Utilize Mocks
Creating a Database Abstraction
Using the Abstraction as a Dependency
Setting Up Test Environment Basics
User Login Test
Mock Database User Login Tests
Database Exception Testing Made Simple
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.
Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal