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:

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