Quality Assurance, Test Driven Development

Purpose Driven Testing

“Quality is never an accident; it is always the result of an intelligent effort.”
– John Ruskin

Oftentimes, when people think about system testing, their thought process goes something like this: “If this system has any issues we don’t know about, it’s okay because our testers will find them.” The problem with this is, if the quality of the system being tested is low to begin with, what is the point of testing? The reality is, “testing” is one of many ways of finding defects, but alone it will not get the job done. The ingredient list must also include precision, planning, strategy, know-how, which testing type to use, anticipation, contemporary process, the right people, and vision.

Read More
By Noel Lopez on Jun 8, 2015 1:27:46 PM
Application Development, Mobility, Test Driven Development, Tools

Taking on the Challenge of Mobile App Testing: How to Test Cross-Platform

A recent report by OpenSignal revealed that there are 18,796 distinct Android devices in use. This data was gathered directly from users who installed the company’s app. Even though device fragmentation is not a new phenomenon in the Android world, the sheer number of devices is impressive (up from 11,868 devices counted last year).

Read More
By Axel Buerkle on Sep 2, 2014 11:17:16 AM
Agile Development, Methodologies, Test Driven Development

Effective Unit Testing – Part 3: Entity Framework

Recently, the data access technology that we have relied on for most of our projects is Entity Framework. Entity Framework is an excellent tool that makes it easy to work with a database using the .NET code that we are most familiar with. However, out of the box, Entity Framework does little to help support automated unit testing. Specifically, the DbContext is not interface-based and does not provide a clean way to support mocks. This makes it difficult to write a unit test that doesn’t require database access, which would result in slow and error-prone tests.

Read More
By Ben Lucas on Jun 30, 2014 3:00:23 AM
Agile Development, Methodologies, Test Driven Development

Effective Unit Testing – Part 2: Dependency Injection

In my last post, I mentioned that one problem with my earlier unit tests was their dependency on database access. Having my tests directly dependent on the database created slow-running tests and tests that were prone to failure as the database changed. Over the course of this post, I’m going to demonstrate some of the techniques I have learned that provide the ability to decouple a set of code from using direct database access. Note that the examples are in C#; however, the principles apply to any object-oriented language with a unit testing framework.

Read More
By Ben Lucas on Mar 3, 2014 2:00:02 AM
Agile Development, Methodologies, Test Driven Development

Effective Unit Testing – A Developer’s Journey - Part 1

For my entire career as a software developer, I have believed that unit testing is an essential activity that is part of delivering a quality product. However, what that means to me has gone through multiple revisions. This post is not intended to give a detailed overview of how to write unit tests or any specific unit testing practice. What I intend is to take you through my journey and a few things I’ve learned as I’ve incorporated automated unit testing into my developer’s tool belt.

Read More
By Ben Lucas on Nov 25, 2013 3:00:48 AM