[sbt 0.12] - Test configuration and compile configuration

26 views
Skip to first unread message

edmondo1984

unread,
Sep 26, 2012, 8:50:25 AM9/26/12
to simple-b...@googlegroups.com

Dear al,

I have a play project where I want to compile twitter bootstrap as well as to prevent tests to be executed in parallel

def twitterBootstrapEntryPoints(base:File):PathFinder = {
    (base / "app" / "assets" / "stylesheets" / "bootstrap" * "bootstrap.less") +++
    (base / "app" / "assets" / "stylesheets" / "bootstrap" * "responsive.less") +++
    (base / "app" / "assets" / "stylesheets" * "*.less")
}



val common = PlayProject(appName, appVersion,appDependencies, mainLang = SCALA).settings(
    organization := appOrganization,
    lessEntryPoints <<= baseDirectory(twitterBootstrapEntryPoints),
    resolvers ++= commonResolvers).settings( inConfig(Test)(parallelExecution := false) : _* )

This works perfectly fine in compiling, however when running tests this does not work anymore. 

In fact, the Play .less compiler tries to compile all the files, ignoring

 lessEntryPoints <<= baseDirectory(twitterBootstrapEntryPoints)

Why is this setting not applied in the test configuration? Which information had I lost?


Best Regards


Edmondo


Reply all
Reply to author
Forward
0 new messages