pcholakov / concurrency-testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Concurrency testing with jcstress

Build the tests:

mvn package

Run the tests:

java -jar target/jcstress.jar -m quick

You should see detected instances of the race conditions such as:

  [FAILED] demo.ReporterBrokenStressTest
    (JVM args: [-server])
  Observed state   Occurrences   Expectation  Interpretation
               1     2,722,117    ACCEPTABLE
               2       648,613     FORBIDDEN  No default case provided, assume FORBIDDEN

The directory results will contain generated HTML reports summarising the observed outcomes.

About

License:Apache License 2.0


Languages

Language:Java 100.0%