giter8 icon indicating copy to clipboard operation
giter8 copied to clipboard

Test name clashing

Open doncorsean opened this issue 8 years ago • 4 comments

When I try to run g8Test on a project with a test folder I get :[error] (test:g8) java.io.FileNotFoundException: /giter8-play/target/sbt-test/Default-Play-template/scripted/test (Is a directory). Any idea/workaround to resolve?

doncorsean avatar Dec 14 '17 14:12 doncorsean

This is due to a clash with how scripted works. It uses a file called test in that directory to define the test itself.

However, I'm afraid I've not come up with any particularly elegant solution to this as the name of the file is hardcoded inside the scripted plugin.

wolfendale avatar Dec 14 '17 19:12 wolfendale

Yeah, that's what I was afraid of. test is not a particularly good name for that file methinks lmao

doncorsean avatar Dec 14 '17 19:12 doncorsean

@wolfendale qq, I also noticed that giter8 prunes any empty directories. Any way to turn that off if I want a particular structure present in the output project?

doncorsean avatar Dec 15 '17 15:12 doncorsean

I'm afraid I've not looked too much at the actual rendering code but, it looks like it just creates parent directories for files that it outputs, so I don't think there'd be a way to do what you want currently :(

wolfendale avatar Dec 16 '17 18:12 wolfendale