Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore] Update instructions to run E2E tests #16084

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed testbed/CCRepo_result.png
Binary file not shown.
24 changes: 11 additions & 13 deletions testbed/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,29 +107,27 @@ Generally, when designing a test for new exporter and receiver components, devel
}
```

## Run Tests and Get Results
## Running the tests

Here providing some examples of how to run and get the results of testing.
To run the tests, use the `e2e-test` Makefile target, which will compile the Collector and run the end-to-end test suites against it.

1. Under the [collector-contrib](https://github.com/open-telemetry/opentelemetry-collector-contrib) repo, the following runs all the tests:
### Run all tests

Run the following at the root of the repo:

```
cd ./testbed
./runtests.sh
make e2e-test
```

​ Then get the result:

![collector-contrib tests result](CCRepo_result.png)
### Run a particular test suite

2. Under the [collector-contrib](https://github.com/open-telemetry/opentelemetry-collector-contrib) repo, the following runs the correctness tests only:
Run the following at the root of the repo:

```
cd ./testbed
TESTS_DIR=correctnesstests/metrics ./runtests.sh
TESTS_DIR=correctnesstests/metrics make e2e-test
```

Then get the result:
### Advanced usage

![collector correctness tests result](correctness_result.png)
A Makefile is also located at [`testbed/Makefile`](./Makefile) that offers targets to directly run certain test suites. Note that these targets will not compile the Collector before running.

Binary file removed testbed/correctness_result.png
Binary file not shown.