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:

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