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:

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