Kojo for Scala 2.9.0, with Testing support

I’m pleased to announce a new release of Kojo (Version: 140511).

Update – The current release of Kojo is now Version: 150511-2. This version includes some changes to the ScalaTest support within Kojo, based on feedback from Bill Venners, the creator of ScalaTest.

Highlights:

  • Scala 2.9.0 is bundled. More information about this release of Scala is available here.
  • Initial support for testing via ScalaTest. To enable this feature, ScalaTest has to be downloaded separately. There is a new story (Stories → Tools → Setup ScalaTest) that helps you to set up ScalaTest for use within Kojo. With this feature, you can start writing simple tests like this:
def sum(n1: Int, n2: Int) = {
  n1 + n2
}

test("sum of positives") {
  sum(1,1) should equal(2)
}

// ignore test for now
ignore("sum of negatives") {
  sum(-1,-1) should equal(-2)
}

For quick access, here’s a link to to a ScalaTest jar file that is compatible with Scala 2.9.0

As always, the new version is available on the Kojo Download Page. Enjoy!

Advertisement
This entry was posted in News, Release. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s