Skip to content

Surefire plugin "systemPropertyVariables" are not propagated by default in "package" or "application wide" JUnit Eclipse "Run configurations" #2117

@l0new4nder3r

Description

@l0new4nder3r

Hi all,

After encountering the dreaded "eclipse does not propagate systemPropertyVariables settings from surefire in JUnit tests by default" behaviour once more today (no, my quarkus test profile tests were just fine), I wanted to know what the status was (using latest version release of Eclipse, currently 2025-12) on this.

I checked a few SO posts and issues here and there, and was delighted to see that @treilhes (thanks a lot! <3) did an amazing job (that I completely missed) to tackle this, last year.

But it took me a while to realise that it was working fine, though only on single test classes, and this puzzles me.
I usually run the JUnit classes by package, or for a whole app.
And it seems that, in these cases, the feature does not work - even after deleting and recreating a new "run configuration".

Am I doing something wrong here?
Or is it really the case, and if so: is there a good reason for this limitation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    testingRelated to JUnit/TestNG test execution in Eclipse

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions