#testing
14 articles tagged with #testing
What is contract testing and why do we need it? - Part 1
What an API contract is, why we need contract testing, how it fits with unit, integration and end-to-end tests, and provider-driven versus consumer-driven approaches.
How to automate API tests with Postman Scripts? - Part 2
Automate API tests with Postman scripts: prepare test cases and data, write tests for real examples and run them with the Collection Runner.
How to write Postman Scripts? - Part 1
The basics of Postman scripts: when pre-request and test scripts run, the execution order, the Postman Sandbox and how to write a first script.
How to unit test Entity Framework Core?
Unit test code that uses Entity Framework Core with test doubles for DbContext and DbSet, so the tests stay fast and focused on the system under test.
Postman Environments
Postman environments let us keep one request template for local, dev, qa and production by moving host names and API keys into environment variables, instead of duplicating collections.
How to test ASP.NET Core Web API with in-memory TestServer?
This guide tests an ASP.NET Core Web API with an in-memory TestServer, covering host setup, HTTP requests, dependency boundaries and fast feedback without a deployed service.
Integration tests vs unit tests - where to draw the line
Unit and integration tests serve different boundaries, feedback loops and maintenance costs, with practical guidance for choosing test types and organising a .NET solution.
Test Driven Development (TDD) - is it worth it for our team
Test-Driven Development evaluated through its design benefits, upfront costs, defect feedback, suitable code areas and a gradual adoption approach for teams.
What is a Test Double - stub vs mock vs fake
Test doubles explained through dummy, stub, spy, mock and fake objects, with practical examples showing when stubs, mocks and fakes are appropriate.
Unit Test Best Practices - FIRST properties
FIRST properties explained through fast, independent, repeatable, self-validating and timely unit tests, with practical guidance for keeping a test suite healthy.
How to set up continuous integration with Visual Studio Online?
Continuous integration with Visual Studio Online explained through vNext builds, package restoration, compilation, tests, and publishing validated artifacts for reliable delivery.
What is engineering practices and why do we need them?
Engineering practices explained as shared disciplines for building, testing, delivering, and operating software with consistent quality, faster feedback, and safer releases.
Code review checklist for .NET teams
A practical .NET code review checklist covering design, readability, correctness, errors, security, performance, testing, operations, and constructive review comments and discussion.
How to write unit tests with NUnit and Moq?
Unit testing with NUnit and Moq explained through FIRST properties, the AAA pattern, test doubles, test cases, exceptions, and verification of interactions.