Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Spring integration tests with Team city: OutOfMemo

rajeshkumar created the topic: Spring integration tests with Team city: OutOfMemo
Spring integration tests with Team city: OutOfMemoryError
Hello all,

On our project we wanted to start having integration tests with JUnit and Spring’s helper classes for integration testing.

We used the same context files that we use for the application and added some context files to add objects for test data from our model package.

The tests will run on Team city when commited and are disabled by making the Spring method isDisabledInThisEnvironment() from it’s test helper classes return true.

When we run these tests as enabled on our local envirornment, thet run fine. However, when we run them on Team City, the context files alone cause an OutOfMemoryError. We did some diagnosis and realized that if we take away all of the test code that are using the Spring context files for testing, we still get an OutOfMemoryError on Team City.

If we got rid of all of the context files that we wanted to use for integration testing, then Team City would no longer get an OutOfMemoryError.

Is there a way Spring can be configured to do these integration tests without getting an OutOfMemoryError on Team City? Is there a way to configure Team city so we do not get an OutOfMemoryError using the Spring context files for our integration tests?
Reply With Quote
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x