Skip to content

Runs JSR107 TCK tests on implementation and does summary report

License

Notifications You must be signed in to change notification settings

trivago/jsr107-test-zoo

 
 

Repository files navigation

TCK tests for all JSR107 implementations

This project uses the maven test runner to execute JSR107 TCK tests for available open source cache implementations. These are:

  • JCache RI
  • Ehcache
  • Hazelcast
  • Apache Ignite
  • Infinispan
  • Blazing Cache
  • Caffeine
  • Triava Cache

These closed source implementations need to be downloaded separately:

  • Oracle Coherence

Running the tests

mvn clean test

Run the tests and get a summary report

mvn clean test 2>&1 | awk -f report.awk

Run tests of Open Source implementations and Oracle Coherence

mvn -Pcoherence clean test

Oracle Coherence jars are not available on maven central. They need to be downloaded and installed separately. Installing Coherence for testing purposes is quite easy, see Install Oracle Coherence.

Running the tests against a new TCK version

mvn -fn -Pcoherence -Djcache.tck.version=1.0.1-SNAPSHOT clean test

The switch -fn means fail never and ensures that all implementations are tested. If this parameter is not set maven will stop the build after the first failing module.

Structure

Each test for an implementation is in a submodule. The submodules contain the relevant configuration details of each implementation and inherit everything needed for running the TCK tests from the parent project.

Report

A tiny awk file extracts all relevant information from the output to get a complete overview of the configuration for each implementation and their test results.

The latest test run report is here: report.md

Example:

## RI Version 1.0 test

Implementation URL: https://github.com/jsr107/RI

### Test configuration:
<implementation-groupId>org.jsr107.ri</immplementation-groupId>
<implementation-artifactId>cache-ri-impl</implementation-artifactId>
<implementation-version>1.0.0</implementation-version>
<CacheManagerImpl>org.jsr107.ri.RICacheManager</CacheManagerImpl>
<CacheImpl>org.jsr107.ri.RICache</CacheImpl>
<CacheEntryImpl>org.jsr107.ri.RIEntry</CacheEntryImpl>
<javax.management.builder.initial>org.jsr107.ri.management.RITCKMBeanServerBuilder</javax.management.builder.initial>
<org.jsr107.tck.management.agentId>RIMBeanServer</org.jsr107.tck.management.agentId>
<jcache.api.version>1.0.0<jcache.api.version>
<jcache.tck.version>1.0.1<jcache.tck.version>
<jsr107-test-zoo-version>1.1-SNAPSHOT<jsr107-test-zoo-version>

Tests run: 465, Failures: 0, Errors: 0, Skipped: 0

Excluded tests: 1

org.jsr107.tck.CachingTest dummyTest

About

Runs JSR107 TCK tests on implementation and does summary report

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Awk 100.0%