opentelemetry-js/e2e-tests
OpenTelemetry Bot 2d3760898c
chore: prepare next release (#5921)
2025-09-10 09:12:38 +00:00
..
.eslintrc.js feat: update proto to 1.7.0 (#5643) 2025-05-28 15:01:55 +00:00
.gitignore feat: update proto to 1.7.0 (#5643) 2025-05-28 15:01:55 +00:00
README.md feat: update proto to 1.7.0 (#5643) 2025-05-28 15:01:55 +00:00
collector-config.yaml feat: update proto to 1.7.0 (#5643) 2025-05-28 15:01:55 +00:00
package.json chore: prepare next release (#5921) 2025-09-10 09:12:38 +00:00
test.mjs feat: add event name to event API and SDK (#5707) 2025-06-02 17:37:06 +00:00
verify.mjs feat: add event name to event API and SDK (#5707) 2025-06-02 17:37:06 +00:00

README.md

OpenTelemetry JS End-to-End Tests

This directory contains end-to-end (E2E) tests for the OpenTelemetry JavaScript project. These tests verify the integration of OpenTelemetry components with a real OpenTelemetry Collector.

Prerequisites

  • Node.js (version as required by the root project)
  • Docker (for running the OpenTelemetry Collector)

Installation

Install dependencies:

npm install

Running Tests

Test can be run completely or each step can be run separately.

npm run test:e2e

Runs the full E2E test workflow in sequence: prepares the output file, starts the Collector, runs the tests, stops the Collector, and verifies the results.

npm run run-collector

Starts the OpenTelemetry Collector in a Docker container and mounts the output file for results. Waits 5 seconds for the Collector to be ready.

npm run stop-collector

Stops the Docker container running the Collector if its running.

npm run verify

Runs the verification script (verify.mjs) to check the contents of collector-output.json for expected results.