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:

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