Relative Content

Tag Archive for javaspringtestingintellij-ideajunit-jupiter

Spring load TestPropetySource OR PropertySource (but not both) based oin condition

I have a TestBase class that is extended by all test classes. This class runs locally from IntelliJ if the @PropertySource("classpath:/test.properties") is used on it it runs properly in the CI pipeline, but if I want to run locally a test (Intellij, click, Run) then I have to replace this with @TestPropertySource("classpath:/test.properties") (Both do not work, the CI does not work with only TestPropertySource local does not work from IntelliJ as mentioned if PropertySource is used)

Spring load TestPropetySource OR PropertySource (but not both) based oin condition

I have a TestBase class that is extended by all test classes. This class runs locally from IntelliJ if the @PropertySource("classpath:/test.properties") is used on it it runs properly in the CI pipeline, but if I want to run locally a test (Intellij, click, Run) then I have to replace this with @TestPropertySource("classpath:/test.properties") (Both do not work, the CI does not work with only TestPropertySource local does not work from IntelliJ as mentioned if PropertySource is used)

Spring load TestPropetySource OR PropertySource (but not both) based oin condition

I have a TestBase class that is extended by all test classes. This class runs locally from IntelliJ if the @PropertySource("classpath:/test.properties") is used on it it runs properly in the CI pipeline, but if I want to run locally a test (Intellij, click, Run) then I have to replace this with @TestPropertySource("classpath:/test.properties") (Both do not work, the CI does not work with only TestPropertySource local does not work from IntelliJ as mentioned if PropertySource is used)

Spring load TestPropetySource OR PropertySource (but not both) based oin condition

I have a TestBase class that is extended by all test classes. This class runs locally from IntelliJ if the @PropertySource("classpath:/test.properties") is used on it it runs properly in the CI pipeline, but if I want to run locally a test (Intellij, click, Run) then I have to replace this with @TestPropertySource("classpath:/test.properties") (Both do not work, the CI does not work with only TestPropertySource local does not work from IntelliJ as mentioned if PropertySource is used)

Spring load TestPropetySource OR PropertySource (but not both) based oin condition

I have a TestBase class that is extended by all test classes. This class runs locally from IntelliJ if the @PropertySource("classpath:/test.properties") is used on it it runs properly in the CI pipeline, but if I want to run locally a test (Intellij, click, Run) then I have to replace this with @TestPropertySource("classpath:/test.properties") (Both do not work, the CI does not work with only TestPropertySource local does not work from IntelliJ as mentioned if PropertySource is used)