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:

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