Hello,
I’m unable to configure the coverage of a javascript project after following https://docs.sonarsource.com/sonarcloud/enriching/test-coverage/javascript-typescript-test-coverage/ .
In SonarCloud I see A few extra steps are needed for SonarCloud to analyze your code coverage.
where I expected coverage information.
Config:
-
GitHub + Github Actions
-
Scanner command:
/usr/bin/docker run --name e0e4e3d9e10dee17854077a41c0e0e1452d7da_bcea7a --label e0e4e3 --workdir /github/workspace --rm -e "NODE_AUTH_TOKEN" -e "NPM_CONFIG_USERCONFIG" -e "GITHUB_TOKEN" -e "SONAR_TOKEN" -e "INPUT_PROJECTBASEDIR" -e "INPUT_ARGS" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e "ACTIONS_RESULTS_URL" -e GITHUB_ACTIONS=true -e CI=true --entrypoint "/entrypoint.sh" --network github_network_cde1ea0d7f01437599f254a0c277de9c -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/frontend-npm-lib-core/frontend-npm-lib-core":"/github/workspace" e0e4e3:d9e10dee17854077a41c0e0e1452d7da -Dsonar.organization=mov-ai -Dsonar.projectKey=MOV-AI_frontend-npm-lib-core -Dsonar.sources=. -Dsonar.scm.provider=git -Dsonar.qualitygate.wait=true -Dsonar.qualitygate.timeout=300 -Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info
-
Languages of the repository: javascript
-
Repository URL: GitHub - MOV-AI/frontend-npm-lib-core: MOV.AI npm core library
-
Link to logs: Forward coverage to sonarcloud · MOV-AI/frontend-npm-lib-core@428e551 · GitHub
-
Link to SonarCloud: https://sonarcloud.io/summary/new_code?id=MOV-AI_frontend-npm-lib-core&pullRequest=191
After reviewing the logs I don’t see any errors, any help is appreciated