Monday, March 27, 2023

I like causing tests to fail


Test Results: 94 Passed, 1 Failed

I like it when tests start failing.

Not in a malicious and wanting to break things way.

I like it when I make a change to some code and then tests fail.

This could seem counterintuitive, and it surprised me when I noticed it.


If an automated test starts failing, that's a good thing. It's doing what it's meant to.


I'd found something that didn't work.

I wrote a test.

I changed the code to make the test pass.

Ran all the tests.

Saw that some previously passing tests now failed.


I want to know this as quickly as possible.

If I know something is broken, I can fix it.

The sooner I find this out, the better, as it saves time and money to find and fix the issue.

Compare the time, money, and effort involved in fixing something while working on it and fixing something once it's in production.


Obviously, I don't want to be breaking things all the time, but when I do, I want to know about it ASAP!




0 comments:

Post a Comment

I get a lot of comment spam :( - moderation may take a while.