-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Description
- Reuse AssertJ-based assertions from the SDK testing module. This probably requires adding a bit of functionality to the SDK assertions first (there probably are some asserts that we have here and they're missing from the SDK testing module). Ideally in this repo we should only have thin Groovy wrappers over the SDK testing assertions.
- Migrate as many test utilities from Groovy to Java (e.g.
TraceUtils) RefactorThis is already doneInMemoryExporter: it's not really an exporter, it only provides thewaitForTraces()method. We should add a shortcut method toInstrumentationSpecification/InstrumentationExtensionclasses so that direct calls towaitForTraces()are eliminated.- Package structure:
io.opentelemetry.testingshould be the general base package for all testing classes and utilities- All spock-related Groovy code should be in the package
io.opentelemetry.testing.spock(base classes, assertion wrappers) - Javaagent bridging should be in the package
io.opentelemetry.testing.javaagent
trask and iNikem