0

In my sbt project, I have two packages in it folder.

I want package.one tests to run first and then package.two. This is needed because tests in package.two are dependent on a Map created and populated by tests from the first package. Is there any way to achieve this?

SCouto
  • 7,808
  • 5
  • 32
  • 49
abhiagNitk
  • 1,047
  • 10
  • 19

1 Answers1

0

Lets assume you have following package structure:

p1/
  Test1.scala
p2/
  Test2.scala

Then you can run following commands:

sbt> testOnly -- -m "p1"

sbt> testOnly -- -m "p2"

This will execute tests from p1 first and then from p2

Pritam Kadam
  • 2,388
  • 8
  • 16