From a0f00ff6a8b525d801128ac80a698909cef01f57 Mon Sep 17 00:00:00 2001 From: Emily Jiang Date: Thu, 13 Oct 2022 13:53:27 +0100 Subject: [PATCH] Add TCK running instruction (#62) --- tracing/tck/README.adoc | 118 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 tracing/tck/README.adoc diff --git a/tracing/tck/README.adoc b/tracing/tck/README.adoc new file mode 100644 index 0000000..344d394 --- /dev/null +++ b/tracing/tck/README.adoc @@ -0,0 +1,118 @@ +// +// Copyright (c) 2022 Eclipse Microprofile Contributors: +// +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + += Running the MicroProfile Telemetry Tracing TCK + +Any MicroProfile Telemetry implementation must pass this test suite. +The TCK uses `testng` + +== Hardware Requirements + +All systems should meet the following recommended hardware requirements: + + * CPU running at 2.0 GHz or higher + * 4 GB of RAM or more + * Network access to the Internet + +== Software Requirements + +You can run this TCK on platforms running the Solaris, Linux, Windows, and Mac OS with the following software installed: + + * Maven + * JDK11+ + +== Dependencies + +To enable the tests in your project you need to add the following dependency to your build: + +[source, xml] +---- + + + org.eclipse.microprofile.telemetry.tracing + microprofile-telemetry-tracing-tck + 1.0 + test + + +---- + +== Declaring the Tests to run + +You also need to specify which tests you want to run, e.g. create a file `tck-suite.xml` in your project which contains the following content: +[source, xml] +---- + + + + + + + + + + + + +---- + +== Configuration in Apache Maven pom.xml + +If you use Apache Maven then the tests are run via the `maven-surefire-plugin` +[source, xml] +---- + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.2 + + + tck-suite.xml + + + + + +---- + +== Running as a Scanned Dependency + +You can also run the TCK as a scanned dependency. + +=== Surefire Configuration in your pom.xml + +Once you've added the dependency, you don't need a `tck-suite.xml` you can just scan the dependency for tests. + +[source, xml] +---- + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.2 + + + org.eclipse.microprofile.telemetry.tracing:microprofile-telemetry-tracing-tck + + + + + +----