Home > TestOfTests

TestOfTests

TestOfTests is a project mainly written in Scala, it's free.

Exploration of different Scala testing frameworks

Project to evaluate and demonstrate capabilities of different Scala testing frameworks. Accompanying slides can be found at

https://docs.google.com/present/edit?id=0AdO9pIGZsCr5ZGQ2NGp2NDRfNjZkbjdtcmtjMw&hl=en

This project will have the following:

  • It should have methods that can return booleans integers strings and collections for exercising match assertions:

    Util.reflect, Util.negate, Util.reflect

  • It should have a method that can raise exceptions for exercising if exception was raised:

    calling Util.negate('x') will throw IllegalArgumentException

  • It should have methods that take an object as an argument and call methods on it for exercising mocks/stubs:

    data object: Message interface: MessageService implementation: MessageServiceToFile

    jmock example: MessagePingerJunitTest

  • It should have a method that can perform a calculation like addition for exercising use of mock/stub with custom method:

    Message.validate could be use for this

Runbook

mvn surefire-report:report -DshowSuccess=false

mvn surefire-report:report-only open target/site/surefire-report.html

mvn test -Dtest=UtilJunitTest

Previous:zemi