-
Notifications
You must be signed in to change notification settings - Fork 22
SonarCloud
dotnet tool install --global dotnet-sonarscanner --version 5.2.0
Create an account on SonarCloud.
dotnet sonarscanner begin /s:<configuration_file>/healthgateway/Apps/sonar-config.xml /k:<project_key> /o:<organization_key> /d:sonar.login=<token>
configuration_file: you must provide the full path to the configuration file healthgateway/Apps/sonar-config.xml, relative paths do not work.
project_key: The project key you created.
organization_key: The organization key you created.
token: The access token you generated.
- Run the following commands on healthgateway/Apps folder:
For analyzing a specific project run the following on the main project folder (e.g. healthgateway/Apps/WebClient).
-
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --logger:"xunit;LogFileName=results.xml"
-
npm --prefix WebClient/src/ClientApp install
-
npm --prefix WebClient/src/ClientApp test
You might not need to run the npm tests if analyzing a specific project, if running on WebClient change prefix path accordingly.
dotnet build
dotnet sonarscanner end /d:login=<token>
-
Developer Standard and Processes
-
Workstation Setup
-
IDE Configuration
-
Application Config
-
RedHat SSO Authorization Server
-
Known Issues