BAEL_spock_extensions

This commit is contained in:
Kacper Koza 2019-04-08 00:34:13 +02:00
parent e0f9f6822e
commit 569c1c5728
1 changed files with 11 additions and 1 deletions

View File

@ -7,6 +7,16 @@ import spock.lang.Specification
class IgnoreIfTest extends Specification {
@IgnoreIf({System.getProperty("os.name").contains("windows")})
def "I won't run on windows"() { }
def "I won't run on windows"() {
expect:
true
}
@IgnoreIf({ os.isWindows() })
def "I'm using Spock helper classes to run only on windows"() {
expect:
true
}
}