Unit Testing
A collection of 45 posts
What a crossword puzzle can teach us about programming
I enjoy doing the USA Today Crossword puzzle every day. It’s fun and I like to think it keeps me sharp. It’s also free. If you google it, you’ll find it rather quickly. This particular crossword puzzle has 2 modes: expert and casual.
In expert mode, there
A case for sets
Back in LabVIEW 2019, NI introduced both sets and maps. Maps became immediately popular. They should be. They are very useful constructs. However, sets seem to have gotten much less attention. In some ways, they aren’t as glamorous, but they do offer some advantages over arrays. To me, these
Art of Unit Testing 2nd edition
I originally bought this book on Fab’s recommendation. I had read the XUnit Test Patterns book and I liked it, but I thought it was rather large and cumbersome. It was 900 pages, so I was looking for something smaller and lightweight that I could recommend to people. I
Distributing Test Doubles and Mocks
One of the questions that came up in our recent Unit Testing Workshop was:
How do I distribute reusable test code such as Test Doubles and Mock Objects?
This question caught me by surprise. It wasn’t something I had really thought a lot about. I had typically just been
Unit Testing Workshop Lessons Learned
At the end of January, we ran a Unit Testing Workshop. It went well. We had 7 participants. They included a LabVIEW Champion, and several CLAs. Overall the reviews were positive, but it was clear that there were some things that could be improved for the next time.
1. The
Stop Asking Permission To Do The Right Thing
I was originally going to title this post “A Business Case for Unit Testing”. I was going to talk about how it helps you to find bugs early, spend less time debugging, and all the other benefits I have mentioned in my previous posts. I intended it as a cheat
December 2019 Webinar
Refactoring
December 11 11:00am MT
I need to add a feature but it is too hard.
Refactoring can help! Refactoring is the art of taking existing code and waking it easier to understand and modify without actually changing it’s behavior. Why? Friction. Code is read more often than
Insta Coverage
I first heard about InstaCoverage at NI Week 2018. I was part of a panel discussing Unit Testing. Peter Bokor gave a brief presentation right before the panel started on a new unit testing tool IncQuiry Labs had created called InstaCoverage. He really emphasized the code coverage calculation. This is