11//
2- // Copyright (c) 2016, 2020 Contributors to the Eclipse Foundation
2+ // Copyright (c) 2016, 2022 Contributors to the Eclipse Foundation
33//
44// See the NOTICE file(s) distributed with this work for additional
55// information regarding copyright ownership.
1919
2020= Running the Microprofile Metrics TCK
2121
22- Any implementation claiming Microprofile Metrics 2.3 compatibility must pass this test suite.
22+ Any implementation claiming Microprofile Metrics 5.0 compatibility must pass this test suite.
2323The TCK uses `junit`.
2424
2525If an implementation supports non-mandatory features defined in the specification then the optional TCK
@@ -28,65 +28,77 @@ must be executed to validate compliance.
2828The optional TCK currently validates the following non-mandatory features:
2929
3030- REST stat metrics
31+ - Base metrics
3132
3233== Dependencies
3334
3435To enable the tests in your Arquillian based test project you need to add the following dependencies:
3536
3637[source, xml]
3738----
39+
40+ <!-- versions should correspond to the value specified in the MicroProfile Parent
41+ pom.xml and MicroProfile Parent TCK-BOM pom.xml used by the specified version of MicroProfile Metrics -->
42+ <properties>
43+ <microprofile.metrics.version>5.0.0</microprofile.metrics.version>
44+ <jakartaee.coreprofile.version>10.0.0</jakartaee.coreprofile.version>
45+ <junit.version>4.13.2</junit.version>
46+ <arquillian.version>1.7.0.Alpha12</arquillian.version>
47+ <hamcrest.version>1.3</hamcrest.version>
48+ </properties>
49+
3850<dependencies>
3951 <dependency>
4052 <groupId>org.eclipse.microprofile.metrics</groupId>
4153 <artifactId>microprofile-metrics-api</artifactId>
42- <version>3.0.0 </version>
54+ <version>${microprofile.metrics.version} </version>
4355 </dependency>
4456
4557 <dependency>
4658 <groupId>org.eclipse.microprofile.metrics</groupId>
4759 <artifactId>microprofile-metrics-rest-tck</artifactId>
48- <version>3.1 </version>
60+ <version>${microprofile.metrics.version} </version>
4961 </dependency>
5062
5163 <dependency>
5264 <groupId>org.eclipse.microprofile.metrics</groupId>
5365 <artifactId>microprofile-metrics-api-tck</artifactId>
54- <version>3.1 </version>
66+ <version>${microprofile.metrics.version} </version>
5567 </dependency>
5668
5769 <dependency>
58- <groupId>jakarta.enterprise </groupId>
59- <artifactId>jakarta.enterprise.cdi -api</artifactId>
60- <version>3.0.0 </version>
70+ <groupId>jakarta.platform </groupId>
71+ <artifactId>jakarta.jakartaee-core -api</artifactId>
72+ <version>${jakartaee.coreprofile.version} </version>
6173 <scope>provided</scope>
6274 </dependency>
6375
6476 <dependency>
6577 <groupId>junit</groupId>
6678 <artifactId>junit</artifactId>
67- <version>4.12 </version>
79+ <version>${junit.version} </version>
6880 <scope>test</scope>
6981 </dependency>
7082
7183 <dependency>
7284 <groupId>org.hamcrest</groupId>
7385 <artifactId>hamcrest-all</artifactId>
74- <version>1.3 </version>
86+ <version>${hamcrest.version} </version>
7587 <scope>test</scope>
7688 </dependency>
7789
7890 <dependency>
7991 <groupId>org.jboss.arquillian.junit</groupId>
8092 <artifactId>arquillian-junit-container</artifactId>
81- <version>1.1.8.Final </version>
93+ <version>${arquillian.version} </version>
8294 <scope>test</scope>
8395 </dependency>
8496
8597 <!-- You can replace this with your choice of container -->
8698 <dependency>
87- <groupId>org.jboss .arquillian.container </groupId>
88- <artifactId>arquillian-wlp -managed-8.5 </artifactId>
89- <version>1.0.0.Final-SNAPSHOT </version>
99+ <groupId>io.openliberty .arquillian</groupId>
100+ <artifactId>arquillian-liberty -managed-jakarta </artifactId>
101+ <version>2. 1.0</version>
90102 <scope>test</scope>
91103 </dependency>
92104</dependencies>
@@ -103,14 +115,7 @@ If running the optional TCK module you will need the below *additional* dependen
103115 <dependency>
104116 <groupId>org.eclipse.microprofile.metrics</groupId>
105117 <artifactId>microprofile-metrics-optional-tck</artifactId>
106- <version>3.1</version>
107- </dependency>
108-
109- <dependency>
110- <groupId>jakarta.ws.rs</groupId>
111- <artifactId>jakarta.ws.rs-api</artifactId>
112- <version>3.0.0</version>
113- <scope>provided</scope>
118+ <version>${microprofile.metrics.version}</version>
114119 </dependency>
115120
116121----
0 commit comments