Last analysis failed Analysis ID "3a9db1d6-e49a-46ea-8629-9d068c94aab7"

Template for a good new topic, formatted with Markdown:

  • ALM used (GitHub, Bitbucket Cloud, Azure DevOps)
  • CI system used (Bitbucket Cloud, Azure DevOps, Travis CI, Circle CI
  • Scanner command used when applicable (private details masked)
  • Languages of the repository
  • Only if the SonarCloud project is public, the URL
    • And if you need help with pull request decoration, then the URL to the PR too
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
  • Steps to reproduce
  • Potential workaround

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hey there.

It looks like you have some wildcards configured for sonar.tests

sonar.tests=integrationTests/, src/**/__tests__/**/*

The pattern src/**/__tests__/**/* is invalid here. The sonar.tests parameter only accepts simple, comma-separated paths to directories or files.

Instead of using wildcards in sonar.tests, point both sources and tests to the same directory, then use exclusions and inclusions to separate them. This leverages SonarQube’s inclusion patterns, which do support wildcards.

Try updating your configuration to

sonar.sources=src,integrationTests
sonar.tests=src,integrationTests
sonar.test.inclusions=**/__tests__/**/*,**/test/**/*,**/*.test.js,**/*.spec.js
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.