I'm facing a rookie challenge in Qurkus (I'm also new in Java, so sorry if I'm having a silly situation). I'm using ".env" file for local development vars and setting (non-secret) production vars in "application.properties".

Things were fine but now that I'm trying to setup a test suite, vars from ".env" are overwriting the ones in "application.properties" (even then ones with "%test" profile) & blocks me to have a development and test environment simultaneously.

To me this can be done by having a separate (source control indexed) env file for different %profiles like ".env.testing" and somehow assign it to test runner. This pattern is very common in other languages' testing frameworks, but I couldn't find a solution for that.

Have any idea?

Thanks