Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test_sonarqube_report.xml is Empty when Tests Execute in Parallel #10

Open
ecorreyu opened this issue May 31, 2023 · 0 comments
Open

Test_sonarqube_report.xml is Empty when Tests Execute in Parallel #10

ecorreyu opened this issue May 31, 2023 · 0 comments

Comments

@ecorreyu
Copy link

Test_sonarqube_report.xml is empty when executing fastlane scan in parallel.

We uses fastlane to get the Unit Tests and the coverage. The part of the lane we are executing is:

Without parallel:

  parallel = "false"
  xcodebuild_formatter = "xcpretty"
  if parallel == "true"
    xcodebuild_formatter = "xcbeautify"
  end
  scan(
    devices: simulators_names,
    parallel_testing: "#{parallel}",
    concurrent_workers: ENV["concurrent_workers"],
    xcodebuild_formatter: "#{xcodebuild_formatter}"
  )
  #Plugin para convertir fichero .junit en xml para que se suban los Unit Tests a SonarQube.
  forsis(
    junit_report_file: './reports/report.junit',
    sonar_report_directory: './reports'
  )

With parallel:

  parallel = "true"
  xcodebuild_formatter = "xcpretty"
  if parallel == "true"
    xcodebuild_formatter = "xcbeautify"
  end
  scan(
    devices: simulators_names,
    parallel_testing: "#{parallel}",
    concurrent_workers: ENV["concurrent_workers"],
    xcodebuild_formatter: "#{xcodebuild_formatter}"
  )
  #Plugin para convertir fichero .junit en xml para que se suban los Unit Tests a SonarQube.
  forsis(
    junit_report_file: './reports/report.junit',
    sonar_report_directory: './reports'
  )

I attach both files generated without parallel (and with xcpretty) and with parallel (and with xcbeautify).
Test_sonarqube_report_without_parallel.xml.txt
Test_sonarqube_report_with_parallel.xml.txt
report_without_parallel.junit.txt
report_with_parallel.junit.txt

Any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant