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:

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