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:

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