diff options
| author | Saumit <justsaumit@protonmail.com> | 2025-09-27 02:14:26 +0530 |
|---|---|---|
| committer | Saumit <justsaumit@protonmail.com> | 2025-09-27 02:14:26 +0530 |
| commit | 82e03978b89938219958032efb1448cc76baa181 (patch) | |
| tree | 626f3e54d52ecd49be0ed3bee30abacc0453d081 /test/README.md | |
Initial snapshot - OpenTelemetry demo 2.1.3 -f
Diffstat (limited to 'test/README.md')
| -rw-r--r-- | test/README.md | 33 |
1 files changed, 33 insertions, 0 deletions
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" +``` |
