Testing Improvements

We’ve recently improved the support for Scala tests in IntelliJ IDEA 15 EAP a bit. Read on to find out more details.

Statically computed expressions in scalaTest/specs2/uTest2 test names are now supported, which means that along with string constants you can use constructions like immutable string variables, concatenation, substring, stripSuffix, stripPrefix, toLowerCase, replace, or trim.


scalaTest/specs2/uTest2 tests and their hierarchy is displayed in the File Structure view when you click Show scala tests.


Don’t forget that your feedback is always welcome in our discussion forum and issue tracker.

Develop with Pleasure!

This entry was posted in EAP, New Features and tagged , , . Bookmark the permalink.

6 Responses to Testing Improvements

  1. hepin says:

    wow ,great to have.

  2. David Kowis says:

    Fantastic. Would this work for a list of strings, or mapping across a set of values? Or only just string concats right now?

    • Maksim Sobolevskiy says:

      Hi, David! Now it works only for concatenation and several hardcoded methods we’ve described (replace, substring etc.). Can you please make a ticket on our issue tracker and describe your wishes in detail?
      It is the best way to get the functionality you would like to have.

  3. Schmitt Christian says:

    Test improvments are cool, but as long as the Specs2 Testing doesn’t work all the time it’s aweful, it should definitly make more use of sbt, than the IntelliJ compiler.
    On Play2 projects either JUnit and Specs2 /ScalaTest mostly fails inside the IDE, while it works on the console.

    • Maksim Sobolevskiy says:

      Hi, Christian!
      Could you please share one example with us which doesn’t work?
      And what version of Scala plugin do you use?

  4. Aki Huttunen says:

    The test feature is great but it assumes that the test is named XxxTest but we are using the “standard” Specs2 way of naming them XxxSpec. Is there some way to configure this?

Leave a Reply

Your email address will not be published. Required fields are marked *