My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
HelloSpock  
Your first Spock specification.
Updated Nov 17, 2009 by pnied...@gmail.com
import spock.lang.*

class HelloSpock extends Specification {
  def "can you figure out what I'm up to?"() {
    expect:
    name.size() == size

    where:
    name << ["Kirk", "Spock", "Scotty"]
    size << [4, 5, 6]
  }
}
Comment by swethaku...@gmail.com, Oct 28, 2011

How to run this in Eclipse?

Comment by project member pnied...@gmail.com, Oct 28, 2011

See http://code.google.com/p/spock/wiki/GettingStarted#Eclipse. Alternatively you can download the example project and auto-create an Eclipse project for it (see README).


Sign in to add a comment
Powered by Google Project Hosting