1

We want to cause scalac warnings to fail our build in the test/CI environment, but not in a dev environment. We tried this in our build.sbt:

scalacOptions in Test += "-Xfatal-warnings"

However, what that does is cause warnings in the test tree to fail the build (even in the dev environment), but warnings elsewhere do not.

What is the proper way to enable fatal-warnings for all code in the test environment, but not elsewhere?

elijah
  • 2,904
  • 1
  • 17
  • 21

0 Answers0