Units of Measurement TCK

Units of Measurement (JSR 385) TCK.

License

License

BSD3
GroupId

GroupId

tech.units
ArtifactId

ArtifactId

unit-tck
Last Version

Last Version

2.1.1
Release Date

Release Date

Type

Type

bundle
Description

Description

Units of Measurement TCK
Units of Measurement (JSR 385) TCK.
Project URL

Project URL

http://github.com/unitsofmeasurement/unit-tck
Project Organization

Project Organization

Units of Measurement project
Source Code Management

Source Code Management

https://github.com/unitsofmeasurement/unit-tck.git

Download unit-tck

Dependencies

compile (11)

Group / Artifact Type Version
javax.measure : unit-api jar 2.1.1
tech.units : indriya jar 2.1.1
jakarta.inject : jakarta.inject-api jar 2.0.0
org.testng : testng jar 7.0.0
org.hamcrest : hamcrest-library jar 1.3
org.slf4j : slf4j-api jar 1.7.30
org.slf4j : jul-to-slf4j jar 1.7.30
org.reflections : reflections jar 0.9.12
org.mutabilitydetector : MutabilityDetector jar 0.10.2
org.jboss.test-audit : jboss-test-audit-api jar 2.0.0.Final
org.jboss.test-audit » jboss-test-audit-impl jar 2.0.0.Final

Project Modules

There are no modules declared in this project.

unit-tck

JSR 385 Technology Compatibility Kit (TCK)

Maven Central javadoc Circle CI Stability: Active License

The current module contains the technology compatibility kit of JSR 385.

To setup the TCK with your implementation you must follow the following steps:

  1. Create a new Maven project. You could also use compatible alternatives like Gradle.
  2. Add this TCK and your implementation as dependency.
  3. Implement a class of type tech.units.tck.TestSetup, read the Javadoc, what you must provide with this class.

Running

To run the TCK, simply execute

mvn clean test
  1. Go to target - where you can find your TCK test results.

For help on using the TCK you may execute

mvn exec:java

This will only print instructions, to run the TCK you need to execute it through TestNG.

To get version information you may execute

mvn exec:java -Pversion

Profiles

When running the TCK (mvn test) by calling the system property

-Dtech.units.tck.profile=<profile>

you may select one of the following profiles:

  • MINIMAL
  • FORMAT
  • BASE_QUANTITY
  • QUANTITY
  • QUANTITY_FORMAT
  • SPI
  • FULL

The Full profile is default whenever you don't explicitly pass a profile. You may pass the profile name in either case, TCKRunner will automatically convert them to UPPERCASE before parsing the name of the profile.

Other System Properties

In addition to profiles, the following system properties allow you to override default behavior and storage locations of the TCK:

-Dtech.units.tck.outputDir=<output directory>

To override the default output directory

-Dtech.units.tck.reportFile=<file name>

To override the default TCK report file

-Dtech.units.tck.verbose=yes/no

To toggle the verbose option of the TCK for extended test output. The default is false. And you normally won't need to set this unless you require detailed analysis or issue resolution.

tech.units

Units of Measurement

Units of Measurement provides a set of APIs and services for handling units and quantities.

Versions

Version
2.1.1
2.1
2.0-PRD
2.0-EDR
2.0
1.1