Skip to content

Commit 07c7604

Browse files
authored
Update AGENTS.md (#116)
1 parent ea6c3d2 commit 07c7604

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

AGENTS.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,20 +178,24 @@ fun parseLegacyPromptTemplateWithTemplateFormat() {
178178

179179
### Running tests
180180

181+
Try to run targeted tests matching the code you changed:
182+
181183
```bash
182-
# All prompt tests (unit + integration)
183-
./gradlew :langsmith-java-core:test --tests "com.langchain.smith.prompts.*"
184+
# Run tests for the package you changed
185+
./gradlew :langsmith-java-core:test --tests "com.langchain.smith.prompts.*" --rerun
184186

185-
# Just integration tests (requires API keys)
186-
./gradlew :langsmith-java-core:test --tests "com.langchain.smith.prompts.PromptIntegrationTest"
187+
# Run a single test class
188+
./gradlew :langsmith-java-core:test --tests "com.langchain.smith.prompts.ManifestParserTest" --rerun
187189

188-
# Force re-run (skip Gradle cache)
189-
./gradlew :langsmith-java-core:test --tests "..." --rerun
190+
# Run a single test method
191+
./gradlew :langsmith-java-core:test --tests "com.langchain.smith.prompts.ManifestParserTest.parsePromptTemplate" --rerun
190192

191193
# See println output
192194
./gradlew :langsmith-java-core:test --tests "..." --rerun --info
193195
```
194196

197+
Only run the full suite (`./gradlew :langsmith-java-core:test --rerun`) before finalizing a PR or after large cross-cutting changes.
198+
195199
### Integration tests
196200

197201
Integration tests require environment variables:

0 commit comments

Comments
 (0)