A Beautiful Day For Unit Tests

Facebook
Twitter
LinkedIn
Pinterest
WhatsApp

Writing unit tests on Legacy Code is an adventure. Today I spent several hours doing that with two developers, Mark and Yelena.

The system has a flow you are used to and when you write code you fit it into this flow. Then you test the entire system.

With unit tests, it works differently. You are required to start the flow from the middle and stop it when your deed was done.

This requires a different level of system understanding. When we started off in the morning we looked at the code and thought “how are we going to harness this?”

To instantiate the class we needed a session so we extracted the code to a different place, then there was a logging mechanism we had to bypass. Everything was almost working when we realized that instead of getting a specific exception we got a null pointer. After additional investigation, we found that the exception itself throws the null pointer because it didn’t get the file access required.

On the way we found defects, it was a pleasure.

The main achievement was to reduce the level of anxiety from doing this. The more you practice it the faster it will go and you will become a true master of the system. Do not hesitate – take that adventure!

Subscribe for Email Updates:

Categories:

Tags:

Lean and Agile Principles and Practices
Slides
Jira
Lean Agile Basics
Test Driven Development
Risk Management in Kanban
ROI
Rapid RTC
Elastic Leadership
ART Success
Jira Cloud
RSA
Nexus and SAFe
Agile Testing Practices
Jira admin
Agile Basics
Scrum Primer
SAFe
Managing Projects
Frameworks
ScrumMaster Tales
Jira Plans
Agile Mindset
Engineering Practices
Agile Risk Management
Built-In Quality
BDD
Business Agility
Introduction to Test Driven Development
Tools
Scrum.org
Accelerate Value Delivery At Scale
Agile Assembly Architecture
Professional Scrum with Kanban
RTE
Presentation
Agile Israel
Certified SAFe
The Kanban Method
SAFe DevOps
Achieve Business Agility
Managing Risk on Agile Projects
Agile Outsourcing
Lean-Agile Budgeting
Coaching Agile Teams
Legacy Code
Webinar
Certification
Change Management
Scrum With Kanban
Manage Budget Creation
Perfection Game
Portfolio for Jira
Process Improvement
Value Streams
Implementation of Lean and Agile
Reading List
A Kanban System for Software Engineering
Enterprise DevOps
Implementing SAFe
WIP
lean agile change management
Agile Product Development
AgileSparks
LPM
SPC
Agile Delivery
Risk-aware Product Development
RTE Role
Agile Techniques
Lean-Agile Software Development
Principles of Lean-Agile Leadership
Agile Marketing
Agile Israel Events
Artificial Intelligence
Kanban Basics
NIT
Kanban Game
Kanban 101
Sprint Retrospectives
AI
Agile Project Management
System Integration Environments
EOS®
GanttBan
Professional Scrum Master
Kanban Kickstart Example
Agility
Nexus Integration Team
speed at scale
User stories
Team Flow
Scrum Guide
Daily Scrum
Limiting Work in Progress
Lean Agile Management
Applying Agile Methodology
Agile Development
SA
Agile Community
Pomodoro Technique
Effective Agile Retrospectives
Code
Agile in the Enterprise
Agile Exercises
Product Management
Nexus vs SAFe
ARTs
Story Slicing
Legacy Enterprise
Agile Contracts Best Practices
LAB
The Agile Coach
Scrum and XP
Scrum Values
Product Ownership
AI Artificial Intelligence
Covid19
POPM
Sprint Iteration
Atlaassian
Advanced Roadmaps
Agile
Retrospectives
Hybrid Work
Lean Startup
Lean Agile Leadership
An Appreciative Retrospective
Release Train Engineer
Iterative Incremental Development
Quality Assurance
TDD
Continuous Integration
Tips
Amdocs
Atlassian
Lean Risk Management
chatgpt
Continuous Improvement
Agile Games
System Archetypes
Lean Budgeting
Confluence
System Team
Scrum Master
What Is Kanban
DevOps
agileisrael
Continuous Deployment
Games and Exercises
Nexus
Agile Games and Exercises
Video
SAFe Release Planning
Rovo
Releases Using Lean
ATDD
Agile Product Ownership
Lean Agile Organization
Agile Program
ATDD vs. BDD
Planning
Introduction to ATDD
predictability
Agile for Embedded Systems
Professional Scrum Product Owner
Nexus and Kanban
Software Development
Program Increment
Scaled Agile Framework
Kaizen Workshop
Keith Sawyer
Lean and Agile Techniques
Kanban
Self-organization
IT Operations
Lean Software Development
Scrum Master Role
Agile and DevOps Journey
Agile Release Planning
Acceptance Test-Driven Development
speed @ scale
Agile India
PI Objectives
transformation
Kaizen
Large Scale Scrum
Sprint Planning
Development Value Streams
Operational Value Stream
LeSS
Systems Thinking
Agile Project
Agile Release Management
Continuous Planning
QA
Spotify
Software Development Estimation
Entrepreneurial Operating System®
Continuous Delivery
Lean Agile
Risk Management on Agile Projects
ALM Tools
PI Planning
AgileSparks
Logo
Enable registration in settings - general

Contact Us

Request for additional information and prices

AgileSparks Newsletter

Subscribe to our newsletter, and stay updated on the latest Agile news and events

This website uses Cookies to provide a better experience
Shopping cart