Category Archives: testing

Clean Tests: Database Persistence

Other posts in this series: A Primer Building Test Types Isolating Internal State Isolating the Database Isolation with Fakes Database Persistence A couple of posts ago, I walked through my preferred solution of isolating database state using intelligent database wiping … Continue reading 

| 1 Comment

Clean Tests: Isolation with Fakes

Other posts in this series: A Primer Building Test Types Isolating Internal State Isolating the Database Isolation with Fakes Database Persistence So far in this series, I’ve walked through different modes of isolation – from internal state using child containers … Continue reading 

| 6 Comments

Clean Tests: Isolating the Database

Other posts in this series: A Primer Building Test Types Isolating Internal State Isolating the Database Isolation with Fakes Database Persistence Isolating the database can be pretty difficult to do, but I’ve settled on a general approach that allows me … Continue reading 

| 10 Comments

Reliable database tests with Respawn

Creating reliable tests that exercise the database can be a tricky beast to tame. There are many different sub-par strategies for doing so, and most of the documented methods talk about resetting the database at teardown, either using rolled back … Continue reading 

| 25 Comments

Clean Tests: Isolating Internal State

Other posts in this series: A Primer Building Test Types Isolating Internal State Isolating the Database Isolation with Fakes Database Persistence One of the more difficult problems with slow tests that touch shared resources is building a clean starting point. … Continue reading 

| 13 Comments

Clean Tests: Building Test Types

Posts in this series: A Primer Building Test Types Isolating Internal State Isolating the Database Isolation with Fakes Database Persistence In the primer, I described two types of tests I generally run into in my systems: Arrange/act/assert fully encapsulated in … Continue reading 

| 12 Comments

Clean Tests: A Primer

Posts in this series: A Primer Building Test Types Isolating Internal State Isolating the Database Isolation with Fakes Database Persistence Over the course of my career, I’ve an opportunity to work with a number of long lived codebases. Ones that … Continue reading 

| 10 Comments

AutoFixture — a Node.js Test Fixture Library

Working on a recent project that was on the MEAN stack, I needed to create test data quickly. I reviewed and tested out some of the existing libraries that are out there, but none of them fit my specific style. … Continue reading 

| 6 Comments

Testing Stripe.com WebHooks With Requestb.in

SignalLeaf uses Stripe.com for billing. One of the cool things it does is provide web hooks to get events so that you can have your system do things in response to those events. Examples of events include customer creation, customer … Continue reading 

| 1 Comment

Semantics, Modules And Testing: Why (And How) I Test Internal Components, Not Private Methods

I saw someone tweet about a new-ish JavaScript library called Autooc. recently. I had not heard of it, so I clicked the link to find out more. It looks like an interesting project. I’ll have to look at it further … Continue reading 

| 2 Comments