sbt-scapegoat icon indicating copy to clipboard operation
sbt-scapegoat copied to clipboard

How to run the scapegoat task when compiling the test code

Open fedeoasi opened this issue 7 years ago • 1 comments

The scapegoat sbt scope extends the compile scope, which to my understanding means that scapegoat will be run against the compile scope and not against the test scope:

val Scapegoat = config("scapegoat") extend Compile

Is there a way to get a scapegoat task that runs when we compile the test code? This might be a feature request.

fedeoasi avatar Feb 27 '17 19:02 fedeoasi

To actually run scapegoat against the test code itself. I suppose scapegoatTest would be sufficient.

sksamuel avatar Jun 15 '17 09:06 sksamuel