Merge pull request #6686 from kacperkoza/BAEL_spock_extensions

Update spock to 1.3
This commit is contained in:
Loredana Crusoveanu 2019-04-14 09:45:24 +03:00 committed by GitHub
commit 026459a7e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 3 deletions

View File

@ -48,7 +48,7 @@
</build>
<properties>
<spock-core.version>1.3-RC1-groovy-2.4</spock-core.version>
<spock-core.version>1.3-groovy-2.4</spock-core.version>
<groovy-all.version>2.4.7</groovy-all.version>
<gmavenplus-plugin.version>1.5</gmavenplus-plugin.version>
</properties>

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
}
}

View File

@ -2,7 +2,10 @@ import extensions.TimeoutTest
import spock.lang.Issue
runner {
filterStackTrace true
if (System.getenv("FILTER_STACKTRACE") == null) {
filterStackTrace false
}
report {
issueNamePrefix 'Bug '