From 82e03978b89938219958032efb1448cc76baa181 Mon Sep 17 00:00:00 2001 From: Saumit Date: Sat, 27 Sep 2025 02:14:26 +0530 Subject: Initial snapshot - OpenTelemetry demo 2.1.3 -f --- test/README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 test/README.md (limited to 'test/README.md') diff --git a/test/README.md b/test/README.md new file mode 100644 index 0000000..207c40d --- /dev/null +++ b/test/README.md @@ -0,0 +1,33 @@ +# Service Testing + +The OpenTelemetry Demo uses traced-based testing to validate the +functionality of the services and the traces they generate. + +The trace-based tests will each service and validate the traces they +generate and stored in Jaeger, to a known working trace for the same operation. + +## Testing services with Trace-based tests + +To run the entire test suite of trace-based tests, run the command: + +```sh +make run-tracetesting +#or +docker compose run traceBasedTests +``` + +To run tests for specific services, pass the name of the service as a +parameter (using the folder names located [in the tracetesting directory](./tracetesting/)): + +```sh +make run-tracetesting SERVICES_TO_TEST="service-1 service-2 ..." +#or +docker compose run traceBasedTests "service-1 service-2 ..." +``` + +For instance, if you need to run the tests for `ad` and `payment`, you can run +them with: + +```sh +make run-tracetesting SERVICES_TO_TEST="ad payment" +``` -- cgit v1.2.3