BAEL_spock_extensions
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user