This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Agile Brazil presentation about unit testing with Scala

No replies
lucastorri
Joined: 2011-02-15,
User offline. Last seen 42 years 45 weeks ago.
Hello everybody!
On the end of last month/beginning of this one, Agile Brazil 2011 happened (of course, here in Brazil :). A friend and I gave a lecture on how to become more agile, productive and write expressive tests using the available Scala testing frameworks (examples were mostly done with specs2) and we also focused in using that as a starting point to replace Java with Scala in a existent dev environment: by the unit tests.
The presentation content (slides and code) are in: https://github.com/lucastorri/SuperMarket/
Although the slides are in Portuguese, the code is in English. We started by writing (using TDD) a small demo super market commerce application and it unit tests. We then migrated some of those unit tests little by little using the features available not only in the testing framework, but also in Scala. The first steps are always a 1 to 1 translation of the Java test class to a Scala test class (this is generated automatically by the Idea's Scala plugin).
We received a very good evaluation from the attendants. I hope this can be of your appreciation as well. Also, any feedback would be great.
Thanks in advance.
--
Lucas B. Torri

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland