Search
Close this search box.
Search
Close this search box.
Search
Close this search box.

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:

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