Repository navigation
Register forgotten class tests in executables.cmake - #9609
Conversation
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
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
💤 Files with no reviewable changes (3)
📝 WalkthroughWalkthroughSix test executables ( ChangesTest Registration and Name Fix
Possibly Related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
|
@timosachsenberg The following names might be missing from the
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 |
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:
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