Export to GitHub

specs - issue #15

Specification should have def main


Posted on May 7, 2008 by Quick Panda

abstract class Specification should define main method:

def main(args: Array[String]) = new ConsoleRunner(this).main(args)

to run hello world easier.

===

object SomeSpec extends Specification { ... }

I. e. to avoid the need of declaring test runner explicitly.

scala -classpath ... SomeSpec

Comment #1

Posted on May 7, 2008 by Massive Giraffe

That's a very good idea!

I tried to keep runners quite independent from specifications but a main method using the Console runner doesn't hurt.

I've committed this change (rev 345), but I'll do more testing on this for the next release.

Eric.

Comment #2

Posted on May 7, 2008 by Quick Panda

Thank you.

Comment #3

Posted on May 13, 2008 by Massive Giraffe

(No comment was entered for this change.)

Status: Verified

Labels:
Type-Defect Priority-Medium