Skip to content
Merged
Changes from all commits
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
27 changes: 27 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,33 @@ This repository provides observability instrumentation for Java applications.
- Resource cleanup and lifecycle management
- Comprehensive unit tests for new functionality

### Test suites

This project uses gradle 9 which requires specifying test classes and paths explicitly.

For example, this will NOT work because it registers a `Test` without specifying the test classes or paths:

```kotlin
tasks.register<Test>("IntegrationTestUserCreds") {
dependsOn(tasks.shadowJar)
dependsOn(tasks.named("copyAgent"))
...
}
```

This is fixed by specifying the test classes and classpath explicitly:

```kotlin
tasks.register<Test>("IntegrationTestUserCreds") {
testClassesDirs = sourceSets.test.get().output.classesDirs
classpath = sourceSets.test.get().runtimeClasspath

dependsOn(tasks.shadowJar)
dependsOn(tasks.named("copyAgent"))
...
}
```

## Coding Agent Instructions

When implementing changes or new features:
Expand Down
Loading