Repository navigation
[TEST] Use the class-test framework of the OpenMS core, drop the copy - #8
timosachsenberg wants to merge 1 commit into
Conversation
OpenMS now exports its class-test framework as the package component TestFramework (OpenMS/OpenMS#11048, issue OpenMS/OpenMS#11034), so the copy of src/testframework and of OpenMSTestSupport.cpp kept here is no longer needed. - cmake/find_openms.cmake requests TestFramework as an optional component. - The class tests link OpenMS::OpenMSTestSupport, which brings the framework, OpenMS::OpenMS and the test setup (fixed unique-ID seed, OpenMS exception names), compiled into each test with the test's own flags. - With ENABLE_CLASS_TESTING, a core without the framework is refused at configure time with a message naming the remedies, instead of the class tests being dropped unnoticed. Builds with a PACKAGE_TYPE configure no tests and are unaffected. - The source-built core of CI (.github/actions/openms-core) installs the three framework components; the SDK carries them from the first nightly built after the OpenMS change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0149aXmaLwgm7kqfDpQXyQYf
|
The The first nightly that includes it should be published around 03:45 UTC on 2026-12-07; re-running CI then should get past this point. Until then, the test workflow dispatched on this branch with Generated by Claude Code |
|
Validation against an OpenMS core built from Generated by Claude Code |
Description
OpenMS now exports its class-test framework in its CMake package, as the component
TestFramework(OpenMS/OpenMS#11048, issue OpenMS/OpenMS#11034). This PR drops the copy ofsrc/testframeworkandOpenMSTestSupport.cppthat this repository kept and uses the exported framework instead (−3700 lines).cmake/find_openms.cmakerequestsTestFrameworkas an optional component.The class tests link
OpenMS::OpenMSTestSupportinstead of the local OBJECT library. The target brings the framework library,OpenMS::OpenMSand the test setup: the fixed unique-ID seed and OpenMS exception names in failure reports. It compiles that setup into each test executable with the test's own flags.openms_gui/builds its tests at-O0withoutNDEBUG, so the setup now agrees with the tests automatically. The removed object library carried those flags itself.With
ENABLE_CLASS_TESTING=ON, configuring against a core without the framework fails with a message that names the remedies:cmake --installof OpenMS;OpenMSTestFramework,OpenMSTestFramework_headersandcmake_testframework;I chose an error over leaving the tests out, so the class tests cannot disappear unnoticed. Packaging builds (
PACKAGE_TYPEset) configure no tests and are unaffected..github/actions/openms-coreinstalls the three framework components in itssourcemode. The SDK carries them from the first nightly built after the OpenMS merge (2026-12-06 14:02 UTC).CI timing: PR CI uses the latest published nightly SDK by default. Until the first nightly that contains the OpenMS change is published (expected around 03:45 UTC on 2026-12-07), that SDK lacks the framework, so configure stops with the message above. To validate the change before then, the test workflow is dispatched on this branch with
core_mode=source, which builds OpenMSdevelop.Checklist
AI disclosure: written with Claude Code (agentic); the commit carries a
Co-authored-by:trailer. Not built locally: no OpenMS/Qt build is available in the session. CI is the test.Generated by Claude Code