Skip to content

Register forgotten class tests in executables.cmake - #9609

Merged
timosachsenberg merged 2 commits into
developfrom
claude/nice-albattani-icuaxf
Jun 18, 2026
Merged

timosachsenberg merged 2 commits into
developfrom
claude/nice-albattani-icuaxf

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Jun 17, 2026 •

Copy link
Copy Markdown
Contributor

Six *_test.cpp files existed under src/tests/class_tests/openms/source/
but were never listed in executables.cmake, so they were never built or
run by ctest:

  • QcMLFile_test (FORMAT/QcMLFile)
  • MSstatsFile_test (FORMAT/MSstatsFile)
  • TriqlerFile_test (FORMAT/TriqlerFile)
  • SequenceCoverage_test (CHEMISTRY/SequenceCoverage)
  • FIAMSScheduler_test (ANALYSIS/ID/FIAMSScheduler)
  • IDDecoyProbability_test (ANALYSIS/ID/IDDecoyProbability)

All reference concrete classes already compiled into the library, so add
them to the matching *_executables_list. Also fix a copy/paste bug in
TriqlerFile_test.cpp whose START_TEST macro was named MSstatsFile.

DataStructures_test, IMSDataConsumer_test and ISpectrumAccess_test are
left unregistered on purpose: they new() abstract INTERFACES classes and
cannot compile. IsotopeDistributionMIDAS_test.cpp is an empty stub with
no backing class and is likewise left out.

Co-Authored-By: Claude Opus 4.8 [email protected]
Claude-Session: https://claude.ai/code/session_01K9iZCprv1Hm4UHoeJvzyE6

Summary by CodeRabbit

  • Tests
    • Expanded unit test executable coverage by adding new file-format and analysis-related tests.
    • Renamed the Triqler file test suite for clearer reporting.
    • Removed several obsolete OpenMS-related test sources.
  • Chores
    • Updated the test infrastructure configuration to include the newly added test executables and adjust the affected test groups.

claude added 2 commits June 17, 2026 06:34
Six *_test.cpp files existed under src/tests/class_tests/openms/source/
but were never listed in executables.cmake, so they were never built or
run by ctest:

  - QcMLFile_test           (FORMAT/QcMLFile)
  - MSstatsFile_test        (FORMAT/MSstatsFile)
  - TriqlerFile_test        (FORMAT/TriqlerFile)
  - SequenceCoverage_test   (CHEMISTRY/SequenceCoverage)
  - FIAMSScheduler_test     (ANALYSIS/ID/FIAMSScheduler)
  - IDDecoyProbability_test (ANALYSIS/ID/IDDecoyProbability)

All reference concrete classes already compiled into the library, so add
them to the matching *_executables_list. Also fix a copy/paste bug in
TriqlerFile_test.cpp whose START_TEST macro was named MSstatsFile.

DataStructures_test, IMSDataConsumer_test and ISpectrumAccess_test are
left unregistered on purpose: they new() abstract INTERFACES classes and
cannot compile. IsotopeDistributionMIDAS_test.cpp is an empty stub with
no backing class and is likewise left out.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01K9iZCprv1Hm4UHoeJvzyE6
These four test files under src/tests/class_tests/openms/source/ were
never registered in any CMake list and cannot serve as tests:

  - IsotopeDistributionMIDAS_test.cpp  empty (0 bytes); no IsotopeDistributionMIDAS
                                       class exists anywhere in the tree
  - DataStructures_test.cpp            new()s the abstract INTERFACES class
  - IMSDataConsumer_test.cpp           new()s the abstract INTERFACES class
  - ISpectrumAccess_test.cpp           new()s the abstract INTERFACES class

The three INTERFACES classes are pure abstract base classes (only
pure-virtual methods plus virtual destructors), so the auto-generated
constructor/destructor stubs cannot compile and there is nothing concrete
to test in isolation. Their behaviour is covered through the concrete
implementations (e.g. SpectrumAccessSqMass_test, the MSData*Consumer_test
family). No test coverage is lost.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01K9iZCprv1Hm4UHoeJvzyE6
@coderabbitai

coderabbitai Bot commented Jun 17, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0f671c7b-273d-445f-ad5f-1e278251a560

📥 Commits

Reviewing files that changed from the base of the PR and between 92f0521 and f6aef32.

📒 Files selected for processing (4)
  • src/tests/class_tests/openms/source/DataStructures_test.cpp
  • src/tests/class_tests/openms/source/IMSDataConsumer_test.cpp
  • src/tests/class_tests/openms/source/ISpectrumAccess_test.cpp
  • src/tests/class_tests/openms/source/IsotopeDistributionMIDAS_test.cpp
💤 Files with no reviewable changes (3)
  • src/tests/class_tests/openms/source/ISpectrumAccess_test.cpp
  • src/tests/class_tests/openms/source/IMSDataConsumer_test.cpp
  • src/tests/class_tests/openms/source/DataStructures_test.cpp

📝 Walkthrough

Walkthrough

Six test executables (MSstatsFile_test, QcMLFile_test, TriqlerFile_test, SequenceCoverage_test, FIAMSScheduler_test, IDDecoyProbability_test) are registered in the appropriate CMake executable list variables. The START_TEST macro name in TriqlerFile_test.cpp is corrected from MSstatsFile to TriqlerFile.

Changes

Test Registration and Name Fix

Layer / File(s) Summary
CMake test executable list additions
src/tests/class_tests/openms/executables.cmake
MSstatsFile_test, QcMLFile_test, and TriqlerFile_test added to format_executables_list; SequenceCoverage_test added to chemistry_executables_list; FIAMSScheduler_test and IDDecoyProbability_test added to analysis_executables_list.
TriqlerFile START_TEST name correction
src/tests/class_tests/openms/source/TriqlerFile_test.cpp
START_TEST macro argument corrected from MSstatsFile to TriqlerFile so the generated test suite name matches the class under test.

Possibly Related PRs

  • OpenMS/OpenMS#9578: Both PRs modify src/tests/class_tests/openms/executables.cmake to extend the format_executables_list with new test executables.

Poem

A bunny hopped through CMake one day,
And found a test with the wrong name at play—
"MSstatsFile? No, no, no!"
She swapped it to Triqler, good to go,
Then registered six tests along the way! 🐇✅

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main purpose of the PR: registering previously unregistered class tests in the CMake build configuration file.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/nice-albattani-icuaxf

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

Copy link
Copy Markdown
Contributor

@timosachsenberg The following names might be missing from the AUTHORS file:

  • Claude

Please consider applying the following patch:

--- AUTHORS	2026-06-17 15:39:01.280103609 +0000
+++ AUTHORS.new	2026-06-17 15:39:07.156318723 +0000
@@ -25,6 +25,7 @@
  - Chris Bielow
  - Christian Ehrlich
  - Christie Mathews
+ - Claude
  - Clemens Groepl
  - Cornelia Friedle
  - Daniel Jameson

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.

2 participants