BAEL_spock_extensions
This commit is contained in:
parent
e0f9f6822e
commit
569c1c5728
|
@ -7,6 +7,16 @@ import spock.lang.Specification
|
||||||
class IgnoreIfTest extends Specification {
|
class IgnoreIfTest extends Specification {
|
||||||
|
|
||||||
@IgnoreIf({System.getProperty("os.name").contains("windows")})
|
@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
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue