On Mon, 10 Jun 2013 07:10:34 -0700 (PDT)
Martin <
martin....@commercetools.de> wrote:
> I have exactly the same problem. I want to use helper classes from
> src/test/scala in src/it/scala in the same project.
>
> When I use:
>
> lazy val root = Project("root", file("."))
> .configs( config("it") extend(Test) )
> .settings( Defaults.itSettings : _*)
>
> then src/it/scala indeed compiles, but when I execute "it:test", the tests
> from src/test/scala are run, not the integration tests in src/it/scala.
>
> I tried using
>
> lazy val itConfig = config("it") extend(Test)
>
> lazy val root = Project("root", file("."))
> .configs( config("it") extend(Test) )
> .settings( inConfig(itConfig)(Defaults.testSettings) : _*)
>
> and also, inConfig(itConfig)(Defaults.itSettings), but no luck - "it:test" never executes anything. "show it:sources" shows the correct sources though so I'm really confused.
>
> Thanks for any pointers!
This is the same issue as the other thread. There was a bug introduced by the support for forked tests:
https://github.com/sbt/sbt/issues/539
It has been fixed in 0.13 and I think the workaround in 0.12 is:
testGrouping in IntegrationTest <<= definedTests in IntegrationTest map partitionTests
-Mark
>
>
> On Friday, May 4, 2012 3:12:35 PM UTC+2, Mark Harrah wrote:
> >
> --
> You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
simple-build-t...@googlegroups.com.
> To post to this group, send email to
simple-b...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/simple-build-tool?hl=en.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>