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:

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