Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run Test Suites sequentially in ScalaTest / SBT?

How to run Test Suites sequentially in ScalaTest / SBT?

For example if I have this test suites A, B and C I want to make sure that the tests of A will be run 1st then the ones of B then the ones of C.

Is there in configuration that I can make in Scalatest or SBT?

Thank you.

like image 538
Farah Avatar asked Jan 15 '19 17:01

Farah


People also ask

Does sbt run tests in parallel?

By default, sbt executes tasks in parallel (subject to the ordering constraints already described) in an effort to utilize all available processors. Also by default, each test class is mapped to its own task to enable executing tests in parallel.

What is ScalaTest sbt?

ScalaTest is one of the main testing libraries for Scala projects, and in this lesson you'll see how to create a Scala project that uses ScalaTest. You'll also be able to compile, test, and run the project with sbt.

How do you ignore test cases in ScalaTest?

It has been inserted into Scaladoc by pretending it is a trait. When you mark a test class with a tag annotation, ScalaTest will mark each test defined in that class with that tag. Thus, marking the SetSpec in the above example with the @Ignore tag annotation means that both tests in the class will be ignored.


1 Answers

try using parallelExecution in Test := false

like image 125
raj mehra Avatar answered Oct 19 '22 13:10

raj mehra