DISQUS

mccv: Running Scala specs tests in Maven with JUnit 4

  • etorreborre · 5 months ago
    Hi Mark,

    Thanks for your post.

    2 tips for making your specification even more concise (with specs.1.6.0-SNAPSHOT or 1.5.1 SNAPSHOT):

    This will make your specification class a JUnit test:
    class BasicCassandra extends SpecificationWithJUnit { ... }

    It is still runnable in the console with:

    scala -cp <...> run BasicCassandra

    And you can write (if you like it):

    cass.connect().before
    cass.close().after

    Cheers,

    Eric.
  • mccv · 5 months ago
    Excellent, that would be quite a bit nicer. Having the object/class pair is a bit clunky... Overall the framework is very nice though.