Skip to content

test: move the tests to JUnit 5 #167

Closed

Description

@uniqueg

Why

The tests run on JUnit 4 through the vintage engine, with system-rules'
EnvironmentVariables, which needs --add-opens on Java 17 and later.
JUnit 4 support is deprecated in Spring Framework 7 (Spring Boot 4).

How

  • Move the unit and integration tests to JUnit Jupiter (@ExtendWith,
    @BeforeEach, assertions), e.g. with the OpenRewrite JUnit 4 -> 5 recipe,
    reviewed by hand.
  • Replace EnvironmentVariables: let KubernetesObjectsSupplier read the
    ConfigMap settings through an injectable lookup (or Spring properties)
    instead of System.getenv, keeping the variables CONFIGMAP,
    CONFIGMAPNAMESPACE, CONFIGMAPKEY; drop system-rules, the vintage
    engine and the --add-opens of the Surefire argLine.
  • Development docs updated.

Acceptance criteria

  • No JUnit 4, vintage engine or system-rules in the build; same number of
    tests; coverage not lower.

Part of #66.

Activity

  1. added
    priority: low
    status: blocked
    type: testing
    workload: hours
    on Nov 13, 2026
  2. added
    status: triage
    status: in progress
    and removed
    status: blocked
    status: triage
    on Nov 13, 2026
  3. self-assigned this
    on Nov 15, 2026
  4. moved this from Backlog to In progress in ELIXIR On-Cloudon Nov 16, 2026
  5. moved this from In progress to Done in ELIXIR On-Cloudon Nov 16, 2026
  6. removed
    status: in progress
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: lowtype: testingworkload: hours

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions