Skip to content

GorbunowArtem/BoardGamesHomeCup

Repository files navigation

Board Games Home Cup

HorCup Build status

Application for keeping statistic of played board games, optimized for mobile view.

Technologies and libraries used:

Prerequisites:

  • Docker

Run an application:

  • from repository root run
docker-compose up

To check unit tests coverage:

backend:

  • navigate to tests\HorCup.Tests and execute:
dotnet test --collect:"XPlat Code Coverage"
  • it will generate folder tests\HorCup.Tests\TestResults\{Guid}\coverage.cobertura.xml
  • make sure report generator is installed
  • after run:
reportgenerator "-reports:{path to test result folder}\coverage.cobertura.xml" "-targetdir:coveragereport" -reporttypes:Html
  • report will e generated at tests\HorCup.Tests\coveragereport, open index.html file

frontend:

  • navigate to src\HorCup.Presentation\ClientApp
  • open command prompt and run:
npm run test:coverage
  • to run one test:
fit("should....");
  • to ignore test:
xit("should....");

##For storing sensitive data during local development Secret Manager is used. To setup:

 dotnet user-secrets init

 dotnet user-secrets set "ExternalClients:Google:ClientId" "12345"