Skip to content

This repo demonstrates various patterns for how to structure an ASP.NET Core application, including a client SDK and end-to-end testing.

Notifications You must be signed in to change notification settings

briandrennan/WebTesting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Testing

This repo provides examples of how to perform two kinds of testing:

  • End-to-end tests of an ASP.NET Core Web API and hand-coded client
  • Behavior testing using SpecFlow.NET

The first is useful from the perspective of ensuring a client and server can communicate with one another correctly. The latter is useful for things like acceptance testing. The database layer is built using EFCore, which is also used to construct copies of the database in tests. The Respawn package is used to clean the database between test runs to ensure tests do not step on each other. The entire system uses the xUnit test framework.

About

This repo demonstrates various patterns for how to structure an ASP.NET Core application, including a client SDK and end-to-end testing.

Resources

Stars

Watchers

Forks