What’s new in ScalaTest integration

Build 0.5.265 is coming with new cool features for ScalaTest.

First of all it shows now outdated configurations. For example you removed test class, but your configuration is still here, then you’ll see that you shouldn’t try to run this outdated configuration:

What’s next. New plugin version is coming with possibility to run single test.

Usually it’s not obvious what exact test name is, so you have possibility to run single test from context menu. Currently rules to get test name from location is hard-coded for all suites in the latest ScalaTest package. But it won’t work for your custom suites and your custom method invocations to register new tests. That will be possibly changed in future, but now you should write test name by yourself  for custom suites.

Next feature is test navigation. It will work only with unreleased ScalaTest 2.0 (I’m not sure is it available in maven repository, but you can build your own ScalaTest 2.0 snapshot). So you can double click on test and navigate to exact test location. Moreover, joined with previous new feature you can use right click on test node and re-run (or debug) just this test.

Also ScalaTest 2.0 is coming with better scoping feature. It means you will see better tree in test run view:

And that is not all. New feature for ScalaTest integration is re-running failed tests. After the first run you added some fixes and you don’t need to run previously successful tests, so you can just re-run failed tests and you will see, which of them are fixed.

Last thing I want to describe is Coverage integration (for IntelliJ IDEA Ultimate users). It just works:

Thanks to Bill Venners and Chee Seng Chua (from ScalaTest team) for collaboration on doing this cool features.

This entry was posted in Uncategorized. Bookmark the permalink.

9 Responses to What’s new in ScalaTest integration

  1. Ismael Juma says:

    Great improvements, thanks a lot!

    Best,
    Ismael

  2. ktoso says:

    Fantastic! – I’ve been waiting for this :-)

  3. Pingback: Автоматизация функционального тестирования веб-приложений | Polynom Labs

  4. Daryna says:

    Hi,
    thank you so much for teh winderful plug in. I like it so much.
    I dont have tests for my scala classes yet. I want to write them. Is there any help for writing test in IDEA Scala Plug In? Any documentation or advice?

  5. Alexander Podkhalyuzin says:

    Shawn, it’s quite simple to run ScalaTest tests in Scala. What exactly do you need?

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>