No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.settings
docs/apidocs
src/main/java/com/vmlens
target/maven-archiver
.README.md.kate-swp
.classpath
.gitignore
.project
README.md
pom.xml

README.md

stess-test

Stress test is a tool to reproduce java race conditions. It creates an array of tests using the test setup class by n worker threads. It then executes the test by n worker threads till the given iteration count or error count is reached.

usage: com.vmlens.StressTest (-e | -i )

Test Setup Class must implement com.vmlens.stressTest.setup.TestSetup and have a default constructor.

Example: java -cp stress-test-0.0.1-SNAPSHOT-jar-with-dependencies.jar com.vmlens.StressTest -e 5 com.vmlens.stressTest.examples.doubleBasedLocking.DoubleBasedLockingTestSetup

Options:

-e
stop after n errors
-i
stop after n iterations
-t
number of tests per iteration
-w
number of worker threads

#Examples

  • dataRace.DataRaceTest: This test contains a simple data race. If its run on an ARM compatible plattform like for example an rasberry pi it will generate null pointer exceptions.
  • reflection.GenericsHandlingTest: A test to reproduce a race condition in java.lang.reflect.TypeVariable.getBounds()

#Api Doc

https://vmlens.github.io/stress-test/apidocs

#Latest release

#License concurrent-junit is released under the Eclipse Public License 1.0