Skip to content

Commit 026459a

Browse files
authored
Merge pull request eugenp#6686 from kacperkoza/BAEL_spock_extensions
Update spock to 1.3
2 parents ce09990 + 569c1c5 commit 026459a

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

testing-modules/groovy-spock/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
</build>
4949

5050
<properties>
51-
<spock-core.version>1.3-RC1-groovy-2.4</spock-core.version>
51+
<spock-core.version>1.3-groovy-2.4</spock-core.version>
5252
<groovy-all.version>2.4.7</groovy-all.version>
5353
<gmavenplus-plugin.version>1.5</gmavenplus-plugin.version>
5454
</properties>

testing-modules/groovy-spock/src/test/groovy/extensions/IgnoreIfTest.groovy

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ import spock.lang.Specification
77
class IgnoreIfTest extends Specification {
88

99
@IgnoreIf({System.getProperty("os.name").contains("windows")})
10-
def "I won't run on windows"() { }
10+
def "I won't run on windows"() {
11+
expect:
12+
true
13+
}
14+
15+
@IgnoreIf({ os.isWindows() })
16+
def "I'm using Spock helper classes to run only on windows"() {
17+
expect:
18+
true
19+
}
20+
1121

1222
}

testing-modules/groovy-spock/src/test/resources/SpockConfig.groovy

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ import extensions.TimeoutTest
22
import spock.lang.Issue
33

44
runner {
5-
filterStackTrace true
5+
6+
if (System.getenv("FILTER_STACKTRACE") == null) {
7+
filterStackTrace false
8+
}
69

710
report {
811
issueNamePrefix 'Bug '

0 commit comments

Comments
 (0)