0

Say I have a Scalatest file in the main directory, is there a sbt command to run the test such as testOnly or `runMain'? On IntelliJ, you are given the option to run the test.

ferk86
  • 2,325
  • 1
  • 23
  • 27
  • So you want to run all the tests in a test class, or you just want to run a particular `test("hello this is a test"){}` within a test class? – marios Jun 23 '15 at 17:04

1 Answers1

0

You should be able to use test-only. From the scalatest user guide:

test-only org.acme.RedSuite org.acme.BlueSuite
Noah
  • 13,821
  • 4
  • 36
  • 45
  • Thanks. Tried `testOnly` a moment ago, and it worked for a Scalatest file in main directory instead of being not found. – ferk86 Jun 23 '15 at 23:27