It covers: Plugin Structure, Key Plugin Components, Testing, and Publishing
Talk: Gradle Plugin Goodness
It covers: Plugin Structure, Key Plugin Components, Testing, and Publishing
Davis Technology Consulting
by Annyce Davis
by Annyce Davis
Readability is one of the key components to creating high quality unit and integration tests. Yet, we may hinder the readability of our tests by bogging them down with needless information. Let’s take a look at an example.
Here we have a simple test that is desiring to make sure the URL we used to create the Video object matches the result of calling the playCurrentVideo method in the VideoPlaybackService class. We have created a helper method that allows us to pass in the variables for the Video object creation. However, in most cases we don’t need to have all of the parameters set. In fact, the duration and displayDate have no impact on the current method under test. So we’ve added additional, needless information to the test that makes it more difficult to understand what’s going on.
We can fix this issue by updating the Video class to adhere more closely to the Builder Pattern so that the additional setting of fields is not needed. Here is the current setter used for the video’s URL.
We can update it to pass back the Video object (this) instead of just being void. Let’s see how this will help to make the test more readable and understandable.
The end result is something much more readable and maintainable. Happy testing!
by Annyce Davis
Simple Introductory Slide |
Use images if possible |
Finally, recording the videos was the easiest part of the entire process. Since I had everything prepared in advance, I would just open Camtasia and make sure I was using my headset for the recording and push record. I had a list of things I wanted to make sure I did however, before recording, and that consisted of the following:
In Part III of this series, I’ll share what I did to help market my course.
Check out Part I if you missed it!
by Annyce Davis
Looking back on 2015, I’d have to say it was my year of “breaking free”. I finally started to do many of things that I had been only dreaming of for the past several years in my career as a Software Developer. Instead of feeling like I still didn’t know enough, I embraced what I did know and used that to increase my visibility in the Android Community. So here’s a recap of some of the highlights.
YES! 💖 Love this podcast episode with 2 of my favorite role models, @saronyitbarek and @brwngrldev Don’t miss it! https://t.co/lqqvq4OcBa
— Kelly Shuster (@KellyShuster) December 21, 2015