How to disable parallel tests in IDEA

395 views
Skip to first unread message

henry z

unread,
Dec 21, 2016, 11:41:26 PM12/21/16
to specs2-users
I write a couple of integration tests that update db before each test runs. All tests can run well with command "sbt test". But they failed when running in IDEA. The reason is to insert same data repeatedly. I already set the build.sbt as following but it's nonsense:

fork in Test := false

parallelExecution in Test := false

testForkedParallel in Test := false

concurrentRestrictions in Global += Tags.limit(Tags.Test, 1)

testFrameworks := Seq(TestFrameworks.Specs2)

Is there any idea to disable the parallel test in IDEA?

environments:
intelliJ IDEA 2016.2.5 
play framework 2.3.8
specs 3.8.5


henry z

henry z

unread,
Dec 22, 2016, 12:46:30 AM12/22/16
to specs2-users
sbt 0.13.6
Message has been deleted

etorreborre

unread,
Dec 26, 2016, 3:56:18 PM12/26/16
to specs2-users
Do you run tests on a whole folder in Intellij?

Zhao Hongwei

unread,
Dec 27, 2016, 12:58:20 AM12/27/16
to specs2...@googlegroups.com
Thank you, Eric. After add "sequential" to each spec, I can run all of tests in IDEA.

henry z

--
You received this message because you are subscribed to a topic in the Google Groups "specs2-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/specs2-users/WxJeWpj4cZc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to specs2-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages