ExercismでGroovyの演習をテストする方法を学びます
テストを実行するには、次のコマンドを入力します。
$ gradle test
コードが有効なテストをすべて通ったら、次に気になるテストの前にある@Ignoreを外して、別のテストを有効にします。方法は、@Ignoreの行を削除するか、行の先頭にスラッシュを2つ付けてコメントアウトします。
//@Ignore
def 'outputs "Hello, Alice!" when given the name "Alice"'() {
expect: hello.hello('Alice') == 'Hello, Alice!'
}