Skip to content

test: rename CloseAllModulesTestIT so failsafe runs it (#953) - #993

Merged
SeanDuggan merged 2 commits into
devfrom
dev#953-close-all-modules-it
Oct 29, 2026
Merged

SeanDuggan merged 2 commits into
devfrom
dev#953-close-all-modules-it

Conversation

@ismisepaul

Copy link
Copy Markdown
Member

Fixes #953.

What

maven-failsafe-plugin excludes **/*Test* to keep unit tests out of the integration-test phase. That pattern also matched CloseAllModulesTestIT, so its 3 tests have never run since the class moved to src/it in 2019.

The class is renamed to CloseAllModulesIT, like every other integration test. Nothing else changes. I renamed it rather than narrowing the exclude, so the exclude keeps covering any unit test that ends up under src/it.

Tests

The full local pipeline now runs it, and all 3 tests pass:

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0 -- in servlets.admin.moduleManagement.CloseAllModulesIT

Every step of test.yml passed locally (lint, build, PGP check, compose build, Tomcat config check, unit tests, integration tests).

🤖 Generated with Claude Code

maven-failsafe-plugin excludes **/*Test* to keep unit tests out of the
integration-test phase. That pattern also matched CloseAllModulesTestIT,
so its 3 tests had never run since the class moved to src/it in 2019.
Rename it to CloseAllModulesIT, like every other integration test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ismisepaul ismisepaul added this to the 4.0.0 milestone Oct 24, 2026
Copilot AI balanced review requested due to automatic review settings October 24, 2026 23:44
@ismisepaul ismisepaul moved this from Backlog to Next Release Backlog in Security Shepherd Oct 24, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused rename resolves the exclusion mismatch, keeps class references consistent, and introduces no identified issues.

No open issues 🎉

What changed in this PR

Resolves #953 by renaming the integration test class so Maven Failsafe no longer excludes it through the **/*Test* pattern.

Changes:

  • Renames CloseAllModulesTestIT to CloseAllModulesIT, enabling discovery of its three existing tests.
  • Updates the logger’s class reference without changing test behavior or Failsafe configuration.
File Description
src/​it/​java/​servlets/​admin/​moduleManagement/​CloseAllModulesIT.java Renames the test class and updates its logger reference to restore integration-test discovery.

Review effort: Balanced

@SeanDuggan
SeanDuggan merged commit 97808bf into dev Oct 29, 2026
12 checks passed
@ismisepaul ismisepaul mentioned this pull request Nov 1, 2026
15 of 44 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Next Release Backlog

Development

Successfully merging this pull request may close these issues.

[BUG] CloseAllModulesTestIT never runs: excluded by failsafe **/*Test* pattern

3 participants