Re: Parallel execution in defined amount of threads

57 views
Skip to first unread message

Dmitry Makhno

unread,
Nov 9, 2012, 8:34:39 AM11/9/12
to simple-b...@googlegroups.com
Forget to mention:
"org.scalatest" %% "scalatest" % "2.0.M4"
sbt.version=0.12.1-RC2
scalaVersion := "2.9.2"

Mark Harrah

unread,
Nov 9, 2012, 9:42:15 AM11/9/12
to simple-b...@googlegroups.com
On Fri, 9 Nov 2012 05:19:57 -0800 (PST)
Dmitry Makhno <dma...@griddynamics.com> wrote:

> I have following snippet, I also have tried different combinations of
> concurentRestriction.
>
> val testThreads = 8
> lazy val integrationTests = project("integration-test")
> .libraryDependencies(Dependencies.test)
> .settings(
> parallelExecution in Test := true,
> concurrentRestrictions in Test := Seq(

concurrentRestrictions describe the shared, global configuration. It should be:

concurrentRestrictions in Global

not in Test. I've updated the documentation to be explicit about this. (It is updated locally, it will appear on website eventually.)

-Mark

> Tags.limit(Tags.Test, testThreads),
> Tags.limit(Tags.CPU, testThreads),
> Tags.limit(Tags.Compile, testThreads),
> Tags.limitAll(testThreads),
> Tags.limitUntagged(testThreads))
> )
>
> My goal was to run scalaTests in many thread and this is as they wait most
> of the time I planned to do more than 40 threads.
>
> *What I see now, it that parallel tasks count limited to the amount of
> cores I have.*
> *I tried to run it on machine (CI on Jenkins) with two cores - had only 2
> threads.*
> *My machine has 4 cores - tests had only 4 threads.*
>
> I also tried to pass to scalaTestFramework "-P10" parameter, but no luck
> here.
>
> I'm not sure is it issue, or I'm doing something wrong thus please guide me
> for workaround on this.
>
> --
> You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/simple-build-tool/-/nnmA45U8AisJ.
> To post to this group, send email to simple-b...@googlegroups.com.
> To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
>

Dmitry Makhno

unread,
Nov 9, 2012, 11:48:59 AM11/9/12
to simple-b...@googlegroups.com
Thanks a lot, "Global" let it work as a charm.
Reply all
Reply to author
Forward
0 new messages