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:

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