Custom NIO filesystem doesn't load through SBT's test task
For testing, I'm using an in-memory NIO FileSystem implementaion ( memoryfs ). I've taken advantage of it before, and it seems to run fine through e.g. Maven. However, now, in an SBT project, it's impossible to initialize a new FileSystem . Here's a minimal SBT configuration to reproduce the problem: import sbt._ import Keys._ name := "testfs" organization := "com.example version := "0.1-SNAPSHOT" scalaVersion := "2.11.6" libraryDependencies ++= { val scalaTestVersion = "2.2.5" Seq( "org.scalatest" %% "scalatest" % scalaTestVersion % "test", "org.mockito" % "mockito-core" % "1.10.19" % "test",