mirror of https://github.com/sbt/sbt.git
17 lines
353 B
Scala
17 lines
353 B
Scala
Test / testOptions += {
|
|
val baseDir = baseDirectory.value
|
|
Tests.Setup { () =>
|
|
IO.touch(baseDir / "setup")
|
|
}
|
|
}
|
|
|
|
Test / testOptions += {
|
|
val t = baseDirectory.value / "tested"
|
|
val c = baseDirectory.value / "cleanup"
|
|
Tests.Cleanup { () =>
|
|
// assert(t.exists, "Didn't exist: " + t.getAbsolutePath)
|
|
IO.delete(t)
|
|
IO.touch(c)
|
|
}
|
|
}
|