Skip to content

fix: SonarQube report - refs #305404#117

Open
avoinea wants to merge 1 commit into
developfrom
fix-sonarqube
Open

fix: SonarQube report - refs #305404#117
avoinea wants to merge 1 commit into
developfrom
fix-sonarqube

Conversation

@avoinea

@avoinea avoinea commented Jul 8, 2026

Copy link
Copy Markdown
Member

Problem

After Jenkins pipeline update, test libraries changed behavior. Previously, skipped tests still generated empty XML report files. Now, no XML files are generated when tests are skipped. SonarQube scan fails because coverage/junit-results/testreports/*.xml glob matches nothing.

Root Cause

Packages had only test_doctests.py using legacy Plone testing (plone.testing.z2, PloneSandboxLayer, FUNCTIONAL_TESTING layer). These doctests loaded README.txt files with no actual doctest content (>>> lines) → always skipped → no test report generated.

Fix

  • Removed dead test_doctests.py and base.py (legacy Plone 4/5 testing infrastructure)
  • Added real unit tests using unittest.TestCase that actually run and generate test reports
  • Tests use pure functions / light mocking, no Plone integration layer needed

Refs #305404

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

Successfully merging this pull request may close these issues.

1 participant