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:

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