Skip to content

Instantly share code, notes, and snippets.

@naumanbadar
Created February 21, 2017 15:10
Show Gist options
  • Save naumanbadar/50d342adb99dde8b67e45f091fb6b84b to your computer and use it in GitHub Desktop.
Save naumanbadar/50d342adb99dde8b67e45f091fb6b84b to your computer and use it in GitHub Desktop.
Run code from Integration test of project from sbt task
lazy val resurrectDb = taskKey[Unit]("Resurrect database from schema file")
val filter: ScopeFilter =
ScopeFilter(
inProjects( core ),
inConfigurations( IntegrationTest),
inTasks(compile)
)
resurrectDb := runMain.toTask(" db.DbBootstrapper").all(filter).value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment