sbt/scripted-sbt/src/main/scala/sbt/scriptedtest
bitloi f8704752e0
[2.x] feat: Add scriptedKeepTempDirectory setting (#8621)
**Problem**

When running scripted tests to debug sbt plugins, the temporary directories (`/private/var/folder/...`) are automatically deleted after tests complete. This makes it difficult to inspect the test state for debugging purposes, requiring workarounds like adding `$ pause` commands and manually copying directories.

**Solution**

Added a new `scriptedKeepTempDirectory` setting that allows users to preserve temporary directories after scripted tests complete. When enabled, the temporary directory path is logged so users can inspect it.

Usage:
```scala
scriptedKeepTempDirectory := true
```
2026-01-23 21:22:50 -05:00
..
BatchScriptRunner.scala update .scalafmt.conf. enforce new scala 3 syntax 2025-01-02 11:25:34 +09:00
RemoteSbtCreator.scala refactor: Move scripted-sbt-redux back to scripted-sbt 2024-09-15 01:58:23 -04:00
SbtHandler.scala remove deprecated `[this]` qualifier 2024-10-03 21:16:48 +09:00
ScriptedTests.scala [2.x] feat: Add scriptedKeepTempDirectory setting (#8621) 2026-01-23 21:22:50 -05:00