Articles related to Testing

How To Easily Generate Data For SpecFlow Tests

Automatically generate data using AutoFixture when writing SpecFlow tests.

Getting Started With Cypress: An End-to-End Testing Framework

Cypress is a next-generation front end testing tool built for the modern web. It is the next generation Selenium and enables us to write tests faster, easier, and reliable. Some of the compelling features that I find interesting with Cypress are Time Travel…

Simulating Different Scenarios Using Fake JSON Server API

How many times have you had to update the API code to return an empty list or throw an error to test edge case scenarios? How do you demo these different API scenarios to someone? The pages and components of our application have different states. Most of these…

Setting Up Cypress + React App + JSON Server + TypeScript

For the past couple of weeks, I have been playing around with Cypress and been enjoying the experience. Cypress is a next-generation front end testing tool built for the modern web. It is the next generation Selenium and enables to write tests faster, easier…

Setting Up A Fake REST API Using JSON Server

JSON Server is a great way to set up a full fake REST API for front-end development. JSON server can be set up literally in '30 seconds' and with no coding as the website claims. Capture some of the real API's data if it already exists or create a mock data…

Managing Your Postman API Specs

Organizing and managing your API specs either through Postman Cloud or your Source Control.

Automated API Testing Using Postman Collection Runner

Quick and easy way to test your API.

Semantic Comparison: Improve Test Assertions

SemanticComparison makes it easier to compare instances of various objects to each other and improve test assertions.

Use Tests As A Feedback Tool To Improve Code

Listen to tests and act on it to improve the code you are writing.

Tip of the Week: AutoFixture - Make Your Unit Tests Robust

AutoFixture is an open source library for .NET designed to minimize the 'Arrange' phase of your unit tests in order to maximize maintainability

Populating Data for Tests

Different scenarios of test data generation.

Simulating delays in HTTP Calls For Manual Tests

This post shows how to simulate delays in HTTP calls using Fiddler.

Introduce Tests when Fixing Bugs

Refactoring to add tests when fixing bugs helps increase your confidence and grow your test coverage.

Refactoring to Improve Testability: Extracting Dependencies

In the earlier post, Removing Unnecessary Dependencies , we saw how having an unnecessary dependency hinders testability. In this post we will see just the opposite of that - extracting functionality out of a class and creating another class to separate…

Refactoring Test Code: Removing Constructor Dependency

In the earlier post, Removing Unnecessary Dependencies , we saw how having an unnecessary dependency hinders testability. In this post we will see how the test code changed by the refactoring we did for removing the unnecessary dependency and explore ways to…

Refactoring to Improve Testability: Removing Unnecessary Dependencies

Nowadays I am trying to stick to TDD (with the test first approach) and have found it to be of great help. One of the biggest reward doing TDD is that it helps me to stay in the flow and regain speed faster after a distraction. This post explains how to…

Using Fiddler to help in Manual Testing

Fiddler is an HTTP debugging proxy server application, that captures HTTP and HTTPS traffic and displays to the user. It also enables modifying HTTP traffic when sent or received. Fiddler is one of the tools that I use daily and is an indispensable one for…

Organizing Tests into Test Suites for Visual Studio

While working with large code base, that has a lot of tests (unit, integration, acceptance etc), running all of them every time we make a small change (if you are doing TDD or just using build for feedback) takes a lot of time. Organizing tests into different…

Is Code Coverage a Lie?

This post reflects on how code coverage is seen today in the industry and on how it should actually be seen and interpreted so as to produce better and stable code.

Testing Multiple Implementations of same Interface

Often there are times when we need to test multiple implementations of the same interface. We would want to use the same test case against all the implementations so that we don't repeat ourselves . In this post we will see how we can reuse the same test…