Testing Microservices

A microservice architecture is made of single responsibility-focused services that are small, independently and deployable. A complete business application can be obtained aggregating and orchestrating this kind of service. These services are independent of each other, giving you the ability to easily test and deploy each one individually. . A single instance of a microservice […]

Continue Reading

The Philosophy of Testing

Much like we gain knowledge about the behavior of the physical universe via the scientific method, we gain knowledge about the behavior of our software via a system of assertion, observation, and experimentation called “testing.” There are many things one could desire to know about a software system. It seems that most often we want […]

Continue Reading

The testing balance for large integrations

Continuous Integration The first step to delivering consistent and high-quality software is Continuous Integration (CI). CI is all about ensuring your software is in a deployable state at all times. That is, the code compiles and the quality of the code can be assumed to be of reasonably good quality. Source control CI starts with […]

Continue Reading

Understanding behavior-driven development

Test-driven development (TDD) is a software development process originated from Extreme Programming (XP) invented by Kent Beck, which relies on the repetition of a number of short and continuous development cycles. TDD can lead to more modularized, flexible, and extensible code; the early and frequent nature of the testing helps to catch defects early in […]

Continue Reading

Using Test Doubles with Unit Tests – PART 2

Getting back to the example, using the same repository and test that we outlined previously, we now convert that test to use a mock created by Moq instead of the repository stub. Listing below demonstrates how the code looks. using System; using System.Data.SqlClient; using Microsoft.Practices.Unity; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; namespace CodeSamples.Ch05_ClassMocking.Listing04 { public class MockingExample […]

Continue Reading