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!

Categories:

Tags:

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

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