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:

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