So I have this setting
(resourceGenerators in Test) += Def.task {
val file = resourceManaged.value / "simplefolder" / "simplefile"
IO.write(file, "Hello world!")
Seq(file)
}.taskValue
And in some test I have
Source.fromResource("simplefolder/simplefile").mkString
I see that the file is created inside the target/scala-*/resource_managed folder, but still, I cannot using during the test, because that code throws an NullPointerException... What am I doing wrong there?
If the file were not created in the folder simplefolder it works, but when created inside another folder inside the resourceManaged.value folder, it doesn't work