Search
Close this search box.
Search
Close this search box.
Search
Close this search box.

Dev and Test, Sitting in a Tree: K-I-S-S-I-N-G

Facebook
Twitter
LinkedIn
Pinterest
WhatsApp

When I was a kid cars didn’t have seat belts in the back seat. We used to fly to and fro all over whenever the car took a turn. These days my kids shriek with horror if we forget to buckle them up and the car starts moving. That’s the mindset.

Some time ago I led a code retreat event. In the first session, I asked the teams to try and build a simulation of Conways’ Game of Life. Immediately they started coding the simulation.

That was odd.

You see, I usually don’t write any code before I have a test ready to run it. What’s the point? I like it when one key press runs all the tests. It makes me feel safe. It’s the same as when I’m getting into my car I wear the seat belt.

When the people at the session were done with coding, they wanted to see if it works. So they wrote a short main and started debugging.

“They wanted to see if it works.” I’m familiar with this. I also used to write code and then just wanted to make sure it works. These days I have a concrete objective in front of me: a test that should pass.

When I started TDDing (Test Driven Dedign/Development) it was strange. I wanted to write code and I felt messing around with the tests was a waste of time. But as I did more and more of it something changed. It made me feel safe.

On the second session of the aforementioned Code Retreat I asked the people to do the same exercise, but this time the test first. They didn’t understand. So I showed them: I take a blank project and write a test. I start with the assert statement. I use in the assert a Class that I still don’t have and also probably a Method that I don’t have. Then I write the code in the test that comes before it. Then I use the IDE to generate the missing classes and methods. Enlightenment!

In the same way that you don’t build a house without scaffolding, you don’t write code without tests. When you start with the tests, you write code that is more testable. When you build a car, you build it so you could have a proper place to anchor the seat belt. It comes together.

(And it works as well with Legacy code. Read Michael Feather’s Working Effectively with Legacy Code. We will also write about it here.)

It is true for a single developer doing unit tests and it is true for QA people running System Tests: Testing and Development comes together.

Dev and Test
sitting in a tree,
K-I-S-S-I-N-G.
First comes learning,
then comes practice
then comes software in a baby carriage… 
:-O

Subscribe for Email Updates:

Categories:

Tags:

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