To Run tests you must:
- place your Firebase key json file in folder
FireSource.Test\Resources
. - update the path in
<Content Include="Resources\dummydemo-11dd3-firebase-adminsdk-vp6c5-28b7f0fa93.json">
ofFireSource.Test.csproj
- update the
FireStoreFixture.cs
ofFireSource.Test
project with:- correct path to Firebase key json file in constant
FIREBASE_CREDENTIALS_PATH
- project id in constant
FIREBASE_PROJECT_ID
- correct path to Firebase key json file in constant
FIRST create your Firestore database following the guide isel-AVE-2021-FireStore-get-started.md
- Published 28-3-2021, DEADLINE: 18-4-2021, FireMapper-1-reflection
- TBD
- TBD
High level view of projects (in <<...>>
) and core types:
Some tips:
- Run tests with
dotnet test --logger "console;verbosity=detailed"
to seeConsole
output. - List tests with
dotnet test -t
- Select tests to run with
dotnet test --filter NameOfTheClassTest
Run coverage with auxiliary coverage.bat in root folder, which performs the following tasks, for example:
dotnet test --collect:"XPlat Code Coverage"
reportgenerator -reports:Project.Tests\TestResults\66e8839d-6844-4b8a-8067-dc9c32abed5d\coverage.cobertura.xml -targetdir:coverage
coverage\index.htm
NOTICE you must first install the auxiliary dotnet tool reportgenerator docs.microsoft.com/en-us/dotnet/core/testing/unit-testing-code-coverage