java - Automatically chaining multiple tests on broken JVMs -


i running series of performance tests linux command line using maven + testng on java8.

most of these tests run until break jvm (typically running out of memory) @ point manually set , run test new jvm.

i able automatically chain multiple tests run back, don't know of way accomplish when previous test leaves jvm in unusable state.

is there way me reset broken jvm (or along lines) via java / maven / linux / other program / framework?

i have access either oracle's jdk or openjdk, if need may able convince server admin install jdk.

the maven-surefire-plugin allows tests run in forked jvm. information on plugin page, you'll need like:

<plugin>     <groupid>org.apache.maven.plugins</groupid>     <artifactid>maven-surefire-plugin</artifactid>     <version>2.19.1</version>     <configuration>         <forkcount>1</forkcount>         <reuseforks>false</reuseforks>     </configuration> </plugin> 

that create new jvm each test run. can tweak changing forkcount (for example, ensure tests don't run in parallel or do) , use reuseforks determine whether jvms should recycled.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -