sbt-scct & Lift does not find test.default.props

70 views
Skip to first unread message

Damian H

unread,
Jun 13, 2012, 1:18:00 PM6/13/12
to simple-b...@googlegroups.com
Hi,

I'm using sbt-scct from github.com/dvc94ch/sbt-scct , with SBT 0.11.2 on a Lift project.

When I run the scct command in SBT
>coverage:doc

Lift doesn't find the properties file test.default.props (which is in src/main/resources/props).

However, when I run in SBT
>test

Lift DOES find test.default.props

Can anyone point me in the right direction for getting to the bottom of why coverage:doc doesn't find the properties file?

Thanks in advance.

Damian.


Tim Nelson

unread,
Jun 22, 2012, 3:56:03 PM6/22/12
to simple-b...@googlegroups.com
Hi Damian,

I had a similar problem with scct [1]. The problem is that sbt-scct overwrites fullClasspath and resources are not included. The plugin should probably include them, but you should be able to get it working with:

fullClasspath in CoverageTest <+= (baseDirectory) map { bd => Attributed.blank(bd / "src/main/resources") }

Tim

Damian H

unread,
Jun 23, 2012, 5:24:56 PM6/23/12
to simple-b...@googlegroups.com
yea that works!!
Thanks for your help.
All the best,
Damian.

Damian H

unread,
Oct 31, 2012, 12:39:08 PM10/31/12
to simple-b...@googlegroups.com
I've just pulled the latest scct (for sbt 0.12+) from https://github.com/mtkopone/scct and the trick:

  fullClasspath in CoverageTest <+= (baseDirectory) map { bd => Attributed.blank(bd / "src/main/resources") }

no longer works. 

Anybody worked out what work-around is now?

Thanks

Damian.

Damian Helme

unread,
Dec 11, 2012, 5:43:54 PM12/11/12
to simple-b...@googlegroups.com
To answer my own question, this is what's required in 0.12 for SCCT to find Lift's resources ...

  unmanagedResourceDirectories in Scct <+= (baseDirectory) { _ / "src/main/webapp" }

Hope someone else finds that useful.


Reply all
Reply to author
Forward
0 new messages