[PR #2199] tests: ignore commented CMake registrations when checking CTest coverage #2203

Open
opened 2026-11-26 21:20:23 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2199
Author: @EdenBendheim
Created: 11/26/2026
Status: 🔄 Open

Base: main ← Head: ubiq/ctest-registration-comments


📝 Commits (1)

  • 6deaf03 tests: ignore CMake comments in CTest registration checks (TEST-CTEST-REGISTRATION-COMMENTS)

📊 Changes

1 file changed (+61 additions, -3 deletions)

View changed files

📝 tests/test_ctest_registration.py (+61 -3)

📄 Description

Claimed in the coordination issue as: TEST-CTEST-REGISTRATION-COMMENTS (claim)

Commenting out add_test(...) left the registration checker green for a built executable. In a throwaway CMake project, ctest -N listed zero tests while the checker reported zero missing registrations. The checker now strips CMake line and bracket comments before scanning declarations and skip properties. It preserves literal # characters in quoted, escaped and bracket arguments.

Three regression cases failed on main a73a57e13. With this change, all 10 registration tests pass on Python 3.12.14 and 3.14.3 on macOS, and the checker flags the omitted executable from the CMake fixture. Compile, diff and changed-file game-data checks passed. Simulated merge with #1418 was clean.

GPUs tested: n/a. All tests used synthetic inputs.

AI-assisted: yes. Created with gpt-6.2-astra in Codex.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2199 **Author:** [@EdenBendheim](https://github.com/EdenBendheim) **Created:** 11/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `ubiq/ctest-registration-comments` --- ### 📝 Commits (1) - [`6deaf03`](https://github.com/ubiquitarianism/leonida/commit/6deaf03745eb920a372d7e9e0a96a493608e1a08) tests: ignore CMake comments in CTest registration checks (TEST-CTEST-REGISTRATION-COMMENTS) ### 📊 Changes **1 file changed** (+61 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_ctest_registration.py` (+61 -3) </details> ### 📄 Description Claimed in the coordination issue as: TEST-CTEST-REGISTRATION-COMMENTS ([claim](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7183419722)) Commenting out `add_test(...)` left the registration checker green for a built executable. In a throwaway CMake project, `ctest -N` listed zero tests while the checker reported zero missing registrations. The checker now strips CMake line and bracket comments before scanning declarations and skip properties. It preserves literal `#` characters in quoted, escaped and bracket arguments. Three regression cases failed on main `a73a57e13`. With this change, all 10 registration tests pass on Python 3.12.14 and 3.14.3 on macOS, and the checker flags the omitted executable from the CMake fixture. Compile, diff and changed-file game-data checks passed. Simulated merge with #1418 was clean. GPUs tested: n/a. All tests used synthetic inputs. AI-assisted: yes. Created with gpt-6.2-astra in Codex. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#2203
No description provided.