File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
197201Integration tests require environment variables:
You can’t perform that action at this time.
0 commit comments