The Application for our Chess Boom project. The application is where the downloaded games from the extension are imported into and is what provides the analysis (courtesy of Stockfish and Fairy-Stockfish).
The Application supports Standard chess, along with several variants (Atomic, Horde, Chess960).
To use the User Profiles to see overall results of your downloaded chess games played on lichess.org, it is required that you put the .pgn files in the CBoom directory in the application directory, and is recommended you have a lichess account to get data for your wins and losses
for this feature. A lichess account is not required for live analysis, just overall summaries with the user profile feature.
See Confluence Page
To build the project
dotnet build
GitHub Actions provides basic high level code coverage. For more detailed code coverage please use Visual Studio and Run Coverlet Report. Alternatively you can follow the following procedure to generate a coverage report:
-
Download report generator using
dotnet
:dotnet tool install -g dotnet-reportgenerator-globaltool
-
cd src
or, even easier,cd ChessBoom.NUnitTests
-
run
dotnet test --collect:"XPlat Code Coverage"
. A folderTestResults
should be generated containing an XML file calledcoverage.cobertura.xml
-
Use the
reportgenerator
command to generate a report by passing in the coverage file path, and a path to save the coverage code. Here is the general format:reportgenerator -reports:"Path\To\TestProject\TestResults\{guid}\coverage.cobertura.xml" -targetdir:"coveragereport" -reporttypes:Html
A specific example using all steps mentioned aside from step 1:
cd ChessBoom.NUnitTests dotnet test --collect:"XPlat Code Coverage" reportgenerator -reports:"./TestResults/36ca65f7-f197-41a9-a08e-8ac94f5b9c1e/coverage.cobertura.xml" -targetdir:"./coverage -reporttypes:Html
-
open
index.html
from the produced folder in your browser to see coverage.
cd src
dotnet run
Or, alternatively (from root dir):
dotnet run --project src