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:

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