Skip to content

Showcase several ways to test modern applications by example of a .NET service and a React SPA.

License

Notifications You must be signed in to change notification settings

vensas/testing-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Testable Demo Project

Showcase several ways to test modern applications by example of a .NET service and a React SPA.

Disclaimer

  • Demo project for test types, ignore configuration/security settings/code style

Prerequisites

Test Frameworks used

Usage

Create and run database

podman run --name test-db -p 5432:5432 -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -d postgres

Run the backend service

dotnet run --project src/backend/Testable.Api/Testable.Api.csproj

Configure the frontend application

Create a .env file in the src/frontend directory with the following content:

BACKEND_URL=http://localhost:5266

Run the frontend application

cd src/frontend
npm install
npm start

Run backend unit and integration tests

cd src/backend
dotnet test

Run frontend unit/component tests

cd src/frontend
npm install
npm run test

Run frontend playwright tests

cd src/frontend
npm install
npm run playwright

Run k6 performance tests

cd src/k6
k6 run test.js

About

Showcase several ways to test modern applications by example of a .NET service and a React SPA.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •