Closed kurac338 closed 9 months ago
Any feedback on this issue?
Hi @kurac338,
You actually don't need to convert the flutter report output to a JUnit file.
Use the raw report for sonar.flutter.tests.reportPath
:
-Dsonar.flutter.tests.reportPath=${TEST_REPORT_OUTPUT_FILE}
I've altered my CI/CD to not to use JUnit format, but insted to use the raw NDJSON file. However at the moment I am having trouble where the pipeline SonarScanner does not pick up the 'test_report.output' (that NDJSON) file. It says file not found, but the file is clearly there and has contents. I will report back soon.
I am unable to get it working. I will attach the complete log output with redacted content (asterisks *).
@zippy1978 Can you please provide a verified completely working multi-module example in a zip or better yet, in the project repo for future reference? It can se a simple 2/3 module hello-world app.
My logs:
Runtime platform arch=amd64 os=linux pid=313459 revision=8ec04662 version=16.3.0
WARNING: You most probably have uncommitted changes.
WARNING: These changes will not be tested.
Running with gitlab-runner 16.3.0 (8ec04662)
Preparing the "docker" executor
Using Docker executor with image ghcr.io/cirruslabs/flutter:latest ...
Pulling docker image ghcr.io/cirruslabs/flutter:latest ...
Using docker image sha256:cc684d045dc9d8de40042d1d65c65f9ae574cb101fda2b3af925492465dd2f9d for ghcr.io/cirruslabs/flutter:latest with digest ghcr.io/cirruslabs/flutter@sha256:01da5b42f94f1ee39d07c6f6631808ec1397477a52398349955b463559642567 ...
Preparing environment
Running on runner--project-0-concurrent-0 via LP0325...
Getting source from Git repository
Fetching changes...
Initialized empty Git repository in /builds/project-0/.git/
Created fresh repository.
Checking out cfded72d as detached HEAD (ref is *****/tmp)...
Skipping Git submodules setup
Executing "step_script" stage of the job script
Using docker image sha256:cc684d045dc9d8de40042d1d65c65f9ae574cb101fda2b3af925492465dd2f9d for ghcr.io/cirruslabs/flutter:latest with digest ghcr.io/cirruslabs/flutter@sha256:01da5b42f94f1ee39d07c6f6631808ec1397477a52398349955b463559642567 ...
$ wget --quiet --directory-prefix "${SONAR_SCANNER_BASE_DIRECTORY}" "https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/${SONAR_SCANNER_ARCHIVE}"
$ unzip -q -d "${SONAR_SCANNER_BASE_DIRECTORY}" "${SONAR_SCANNER_BASE_DIRECTORY}/${SONAR_SCANNER_ARCHIVE}"
$ PATH="${PATH}:${SONAR_SCANNER_DIRECTORY}/bin/"
$ export SONAR_PROJECT_KEY=$(echo "${SONAR_PROJECT_KEY}" | tr "/" ":")
$ sonar-scanner -Dsonar.host.url=${SONAR_HOST_URL} -Dsonar.login=${SONAR_LOGIN} -Dsonar.links.scm=${SONAR_LINKS_SCM} -Dsonar.links.ci=${SONAR_LINKS_CI} -Dsonar.links.issue=${SONAR_LINKS_ISSUE} -Dsonar.projectKey=${SONAR_PROJECT_KEY} -Dsonar.projectVersion=${SONAR_PROJECT_VERSION} -Dsonar.sourceEncoding=${SONAR_SOURCE_ENCODING} -Dsonar.language=${SONAR_LANGUAGE} -Dsonar.sources=${SONAR_SOURCES} -Dsonar.exclusions=${SONAR_EXCLUSIONS} -Dsonar.inclusions=${SONAR_INCLUSIONS} -Dsonar.tests=${SONAR_TESTS} -Dsonar.test.exclusions=${SONAR_TEST_EXCLUSIONS} -Dsonar.test.inclusions=${SONAR_TEST_INCLUSIONS} -Dsonar.externalIssuesReportPaths=${SONAR_EXTERNAL_ISSUES_REPORT_PATHS} -Dsonar.coverage.exclusions=${SONAR_COVERAGE_EXCLUSIONS} -Dsonar.cpd.exclusions=${SONAR_CPD_EXCLUSIONS} ${SONAR_PROGRAMMING_LANGUAGE_SPECIFIC_OPTIONS} -Dsonar.modules=${SONAR_MODULES} ${SONAR_MODULE_SPECIFIC_OPTIONS} -Dsonar.qualitygate.wait=true
INFO: Scanner configuration file: /opt/sonar-scanner-5.0.1.3006-linux/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarScanner 5.0.1.3006
INFO: Java 17.0.7 Eclipse Adoptium (64-bit)
INFO: Linux 6.2.0-31-generic amd64
INFO: User cache: .sonar/cache
INFO: Analyzing on SonarQube server 9.9.1.69595
INFO: Default locale: "en_US", source code encoding: "UTF-8"
INFO: Load global settings
INFO: Load global settings (done) | time=208ms
INFO: Server id: DD835FD4-AYXuDjuq6z3UcJLUXYme
INFO: User cache: /builds/project-0/.sonar/cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=174ms
INFO: Load/download plugins (done) | time=4075ms
INFO: Process project properties
INFO: Process project properties (done) | time=13ms
INFO: Execute project builders
INFO: Execute project builders (done) | time=2ms
INFO: Project key: ****:flutter-test
INFO: Base dir: /builds/project-0
INFO: Working dir: /builds/project-0/.scannerwork
INFO: Load project settings for component key: '****:flutter-test'
INFO: Load project settings for component key: '****:flutter-test' (done) | time=34ms
INFO: Auto-configuring with CI 'Gitlab CI'
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=56ms
INFO: Load active rules
INFO: Load active rules (done) | time=2186ms
INFO: Load analysis cache
INFO: Load analysis cache (404) | time=29ms
INFO: Load project repositories
INFO: Load project repositories (done) | time=33ms
INFO: Indexing files...
INFO: Project configuration:
INFO: Indexing files of module 'auth'
INFO: Base dir: /builds/project-0/packages/auth
INFO: Source paths: lib, pubspec.yaml
INFO: Test paths: test
INFO: Indexing files of module '****:flutter-test'
INFO: Base dir: /builds/project-0
INFO: Source paths: lib, pubspec.yaml
INFO: 154 files indexed
INFO: 0 files ignored because of scm ignore settings
INFO: Quality profile for dart: dartanalyzer
INFO: Quality profile for json: Sonar way
INFO: Quality profile for yaml: Sonar way
INFO: ------------- Run sensors on module auth
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=37ms
INFO: Sensor Import external issues report
INFO: Sensor Import external issues report (done) | time=0ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=1ms
INFO: Sensor IaC CloudFormation Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=19ms
INFO: Sensor IaC Kubernetes Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Kubernetes Sensor [iac] (done) | time=7ms
INFO: Sensor JavaScript inside YAML analysis [javascript]
INFO: No input files found for analysis
INFO: Hit the cache for 0 out of 0
INFO: Miss the cache for 0 out of 0
INFO: Sensor JavaScript inside YAML analysis [javascript] (done) | time=8ms
INFO: Sensor CSS Rules [javascript]
INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
INFO: Sensor CSS Rules [javascript] (done) | time=0ms
INFO: Sensor C# Project Type Information [csharp]
INFO: Sensor C# Project Type Information [csharp] (done) | time=1ms
INFO: Sensor C# Analysis Log [csharp]
INFO: Sensor C# Analysis Log [csharp] (done) | time=9ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (done) | time=0ms
INFO: Sensor Dart sensor [flutter]
WARN: Duplication reported for 'packages/auth/test/json/json_reader.dart' will be ignored because it's a test file.
WARN: Duplication reported for 'packages/auth/test/features/auth/data/repositories/auth_firebase_repository_test.dart' will be ignored because it's a test file.
WARN: Duplication reported for 'packages/auth/test/features/register/domain/notifiers/register_notifier_test.dart' will be ignored because it's a test file.
WARN: Duplication reported for 'packages/auth/test/features/reset_password/domain/notifiers/set_new_password_notifier_test.dart' will be ignored because it's a test file.
WARN: Duplication reported for 'packages/auth/test/test_variables.dart' will be ignored because it's a test file.
WARN: Duplication reported for 'packages/auth/test/features/register/data/repositories/register_backend_repository_test.dart' will be ignored because it's a test file.
WARN: Duplication reported for 'packages/auth/test/features/reset_password/data/repositories/reset_password_repository_test.dart' will be ignored because it's a test file.
WARN: Duplication reported for 'packages/auth/test/features/reset_password/domain/notifiers/reset_password_notifier_test.dart' will be ignored because it's a test file.
WARN: Duplication reported for 'packages/auth/test/features/auth/data/repositories/auth_backend_repository_test.dart' will be ignored because it's a test file.
WARN: Duplication reported for 'packages/auth/test/features/auth/data/mappers/user_entity_mapper_test.dart' will be ignored because it's a test file.
WARN: Duplication reported for 'packages/auth/test/features/auth/data/mappers/token_entity_mapper_test.dart' will be ignored because it's a test file.
WARN: Duplication reported for 'packages/auth/test/features/register/data/repositories/register_firebase_repository_test.dart' will be ignored because it's a test file.
WARN: Duplication reported for 'packages/auth/test/features/auth/domain/notifiers/auth_notifier_test.dart' will be ignored because it's a test file.
INFO: Sensor Dart sensor [flutter] (done) | time=513ms
INFO: Sensor Dart pubspec.yaml sensor [flutter]
INFO: Sensor Dart pubspec.yaml sensor [flutter] (done) | time=1ms
INFO: Sensor Dart analysis sensor [flutter]
INFO: Detected Flutter project with version 0.0.1
INFO: Using existing analysis_options.yaml since override is disabled
INFO: Running 'flutter [analyze, --no-fatal-warnings, --no-fatal-infos]'
INFO: Command 'flutter analyze --no-fatal-warnings --no-fatal-infos' finished (exit 0)
INFO: Recording 0 issues
INFO: Sensor Dart analysis sensor [flutter] (done) | time=25046ms
INFO: Sensor Flutter unit tests [flutter]
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/auth/test/features/auth/domain/notifiers/auth_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/auth/test/features/auth/data/repositories/auth_backend_repository_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/auth/test/features/auth/data/repositories/auth_firebase_repository_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/auth/test/features/auth/data/mappers/user_entity_mapper_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/auth/test/features/auth/data/mappers/token_entity_mapper_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/auth/test/features/reset_password/domain/notifiers/set_new_password_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/auth/test/features/reset_password/domain/notifiers/reset_password_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/auth/test/features/reset_password/data/repositories/reset_password_repository_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/auth/test/features/register/domain/notifiers/register_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/auth/test/features/register/data/repositories/register_backend_repository_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/auth/test/features/register/data/repositories/register_firebase_repository_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/dashboard/test/dashboard_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/uni_links/test/uni_links_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/account_administration/test/account_administration_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/notification_management/test/domain/notification_management_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/notification_management/test/domain/notification_management_actionts_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/notification_management/test/data/notification_management_repository_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/picture_gallery/test/domain/picture_gallery_actions_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/picture_gallery/test/domain/picture_gallery_import_images_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/picture_gallery/test/domain/picture_gallery_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/picture_gallery/test/data/picture_gallery_repository_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/user_admin/test/domain/export_users_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/user_admin/test/domain/user_admin_dashboard_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/user_admin/test/domain/user_admin_add_edit_user_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/user_admin/test/domain/import_users_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/user_admin/test/data/user_admin_repository_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/user_admin/test/data/user_import_export_repository_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/file_management/test/domain/file_management_import_files_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/file_management/test/domain/file_management_file_actions_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/file_management/test/domain/file_management_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/file_management/test/data/file_management_repository_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/widgets/test/widgets_test.dart
INFO: Sensor Flutter unit tests [flutter] (done) | time=29ms
INFO: Sensor Flutter Coverage [flutter]
INFO: Analysing [/builds/project-0/coverage/lcov.info]
WARN: Could not resolve 44 file paths in [/builds/project-0/coverage/lcov.info]
WARN: First unresolved path: lib/generated/l10n.dart (Run in DEBUG mode to get full list of unresolved paths)
INFO: Sensor Flutter Coverage [flutter] (done) | time=8ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=2ms
INFO: Sensor TextAndSecretsSensor [text]
INFO: 75 source files to be analyzed
INFO: 75/75 source files have been analyzed
INFO: Sensor TextAndSecretsSensor [text] (done) | time=57ms
INFO: Sensor VB.NET Project Type Information [vbnet]
INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=1ms
INFO: Sensor VB.NET Analysis Log [vbnet]
INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=5ms
INFO: Sensor VB.NET Properties [vbnet]
INFO: Sensor VB.NET Properties [vbnet] (done) | time=1ms
INFO: Sensor IaC Docker Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Docker Sensor [iac] (done) | time=29ms
INFO: ------------- Run sensors on module ****:flutter-test
INFO: Sensor Import external issues report
INFO: Sensor Import external issues report (done) | time=0ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=0ms
INFO: Sensor IaC CloudFormation Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=1ms
INFO: Sensor IaC Kubernetes Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Kubernetes Sensor [iac] (done) | time=1ms
INFO: Sensor JavaScript inside YAML analysis [javascript]
INFO: No input files found for analysis
INFO: Hit the cache for 0 out of 0
INFO: Miss the cache for 0 out of 0
INFO: Sensor JavaScript inside YAML analysis [javascript] (done) | time=1ms
INFO: Sensor CSS Rules [javascript]
INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
INFO: Sensor CSS Rules [javascript] (done) | time=1ms
INFO: Sensor C# Project Type Information [csharp]
INFO: Sensor C# Project Type Information [csharp] (done) | time=0ms
INFO: Sensor C# Analysis Log [csharp]
INFO: Sensor C# Analysis Log [csharp] (done) | time=0ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (done) | time=0ms
INFO: Sensor Dart sensor [flutter]
INFO: Sensor Dart sensor [flutter] (done) | time=273ms
INFO: Sensor Dart pubspec.yaml sensor [flutter]
INFO: Sensor Dart pubspec.yaml sensor [flutter] (done) | time=1ms
INFO: Sensor Dart analysis sensor [flutter]
INFO: Detected Flutter project with version 1.0.0+28
INFO: Using existing analysis_options.yaml since override is disabled
INFO: Running 'flutter [analyze, --no-fatal-warnings, --no-fatal-infos]'
INFO: Command 'flutter analyze --no-fatal-warnings --no-fatal-infos' finished (exit 0)
INFO: Recording 47 issues
WARN: File not included in SonarQube /builds/project-0/packages/account_administration/lib/src/presentation/account_administration_initial_page.dart
WARN: File not included in SonarQube /builds/project-0/packages/chat/lib/src/domain/entities/message.dart
WARN: File not included in SonarQube /builds/project-0/packages/file_management/lib/src/presentation/dialogs/file_management_info_dialog.dart
WARN: File not included in SonarQube /builds/project-0/packages/file_management/lib/src/presentation/pages/file_management_dashboard_page.dart
WARN: File not included in SonarQube /builds/project-0/packages/file_management/lib/src/presentation/pages/file_management_dashboard_page.dart
WARN: File not included in SonarQube /builds/project-0/packages/file_management/lib/src/presentation/pages/file_management_dashboard_page.dart
WARN: File not included in SonarQube /builds/project-0/packages/file_management/lib/src/presentation/pages/file_management_dashboard_page.dart
WARN: File not included in SonarQube /builds/project-0/packages/file_management/lib/src/presentation/pages/file_management_dashboard_page.dart
WARN: File not included in SonarQube /builds/project-0/packages/file_management/lib/src/presentation/pages/file_management_dashboard_page.dart
WARN: File not included in SonarQube /builds/project-0/packages/file_management/lib/src/presentation/widgets/file_management_list_item.dart
WARN: File not included in SonarQube /builds/project-0/packages/file_management/test/domain/file_management_file_actions_notifier_test.dart
WARN: File not included in SonarQube /builds/project-0/packages/picture_gallery/lib/src/presentation/pages/picture_gallery_dashboard_page.dart
WARN: File not included in SonarQube /builds/project-0/packages/picture_gallery/lib/src/presentation/pages/picture_gallery_dashboard_page.dart
WARN: File not included in SonarQube /builds/project-0/packages/picture_gallery/lib/src/presentation/pages/picture_gallery_dashboard_page.dart
WARN: File not included in SonarQube /builds/project-0/packages/picture_gallery/lib/src/presentation/pages/picture_gallery_dashboard_page.dart
WARN: File not included in SonarQube /builds/project-0/packages/picture_gallery/lib/src/presentation/pages/picture_gallery_dashboard_page.dart
WARN: File not included in SonarQube /builds/project-0/packages/picture_gallery/lib/src/presentation/widgets/picture_gallery_list.dart
WARN: File not included in SonarQube /builds/project-0/packages/picture_gallery/lib/src/presentation/widgets/picture_gallery_list_item.dart
WARN: File not included in SonarQube /builds/project-0/packages/picture_gallery/test/domain/picture_gallery_actions_notifier_test.dart
INFO: Sensor Dart analysis sensor [flutter] (done) | time=24202ms
INFO: Sensor Flutter unit tests [flutter]
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/auth/test/features/auth/domain/notifiers/auth_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/auth/test/features/auth/data/repositories/auth_backend_repository_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/auth/test/features/auth/data/repositories/auth_firebase_repository_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/auth/test/features/auth/data/mappers/user_entity_mapper_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/auth/test/features/auth/data/mappers/token_entity_mapper_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/auth/test/features/reset_password/domain/notifiers/set_new_password_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/auth/test/features/reset_password/domain/notifiers/reset_password_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/auth/test/features/reset_password/data/repositories/reset_password_repository_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/auth/test/features/register/domain/notifiers/register_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/auth/test/features/register/data/repositories/register_backend_repository_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/auth/test/features/register/data/repositories/register_firebase_repository_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/dashboard/test/dashboard_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/uni_links/test/uni_links_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/account_administration/test/account_administration_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/notification_management/test/domain/notification_management_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/notification_management/test/domain/notification_management_actionts_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/notification_management/test/data/notification_management_repository_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/picture_gallery/test/domain/picture_gallery_actions_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/picture_gallery/test/domain/picture_gallery_import_images_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/picture_gallery/test/domain/picture_gallery_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/picture_gallery/test/data/picture_gallery_repository_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/user_admin/test/domain/export_users_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/user_admin/test/domain/user_admin_dashboard_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/user_admin/test/domain/user_admin_add_edit_user_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/user_admin/test/domain/import_users_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/user_admin/test/data/user_admin_repository_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/user_admin/test/data/user_import_export_repository_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/file_management/test/domain/file_management_import_files_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/file_management/test/domain/file_management_file_actions_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/file_management/test/domain/file_management_notifier_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/file_management/test/data/file_management_repository_test.dart
ERROR: Unable to find test file /builds/project-0/flutter-skeleton/packages/widgets/test/widgets_test.dart
INFO: Sensor Flutter unit tests [flutter] (done) | time=19ms
INFO: Sensor Flutter Coverage [flutter]
INFO: Analysing [/builds/project-0/coverage/lcov.info]
INFO: Sensor Flutter Coverage [flutter] (done) | time=22ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=0ms
INFO: Sensor TextAndSecretsSensor [text]
INFO: 78 source files to be analyzed
INFO: 78/78 source files have been analyzed
INFO: Sensor TextAndSecretsSensor [text] (done) | time=61ms
INFO: Sensor VB.NET Project Type Information [vbnet]
INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=0ms
INFO: Sensor VB.NET Analysis Log [vbnet]
INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=0ms
INFO: Sensor VB.NET Properties [vbnet]
INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
INFO: Sensor IaC Docker Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Docker Sensor [iac] (done) | time=9ms
INFO: ------------- Run sensors on project
INFO: Sensor Analysis Warnings import [csharp]
INFO: Sensor Analysis Warnings import [csharp] (done) | time=1ms
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=1ms
INFO: CPD Executor 22 files had no CPD blocks
INFO: CPD Executor Calculating CPD for 115 files
INFO: CPD Executor CPD calculation finished (done) | time=32ms
INFO: Analysis report generated in 43ms, dir size=642.8 kB
INFO: Analysis report compressed in 142ms, zip size=292.3 kB
INFO: Analysis report uploaded in 165ms
INFO: ------------- Check Quality Gate status
INFO: Waiting for the analysis report to be processed (max 300s)
INFO: QUALITY GATE STATUS: PASSED - View details on https://sonarqube.****.****/dashboard?id=****%3Aflutter-test
INFO: Analysis total time: 1:10.385 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 1:16.361s
INFO: Final Memory: 36M/154M
INFO: ------------------------------------------------------------------------
Job succeeded
This issue is stale because it has been open for 90 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Hello, I have been struggling with getting a multi-module project analyzed completely.
Versions
Flutter Docker image:
ghcr.io/cirruslabs/flutter:latest
Sonar-Flutter plugin:v0.5.0
SonarQube server:9.9 LTS - 9.9.1 (build 69595)
Sonar-Scanner-CLI:v4.8.0.2856
Setup
I am able to generate 3 types of report:
pub get
summary ofResolving dependencies...
)All of these reports have been generate by the following commands:
These files are than passed to Sonar-Scanner CLI with the following parameters:
Modules are defined like so:
Questions
sonar.flutter.[...].reportPath
).junit.xml
,test_report.output
,lcov.info
files contain reports of the entire project, including the sub-modules. The plugin example in this repository implies that each module should have its own report file, is this correct?