-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from craigatk/even-larger
(feature) Better handle even larger sets of system output
- Loading branch information
Showing
14 changed files
with
30,198 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...ata/spock-gradle/src/test/groovy/projektor/spock/example/ReallyLongOutput10000Spec.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package projektor.example.spock | ||
|
||
import spock.lang.Specification | ||
|
||
class ReallyLongOutput10000Spec extends Specification { | ||
def "should include lots of system out and system err"() { | ||
given: | ||
String longString = (1..100).collect { "$it" }.join("") | ||
println longString | ||
10000.times { println "System out line $it"} | ||
|
||
when: | ||
int actual = 1 | ||
|
||
then: | ||
10000.times { System.err.println("System err line $it") } | ||
actual == 1 | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...data/spock-gradle/src/test/groovy/projektor/spock/example/ReallyLongOutput5000Spec.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package projektor.example.spock | ||
|
||
import spock.lang.Specification | ||
|
||
class ReallyLongOutput5000Spec extends Specification { | ||
def "should include lots of system out and system err"() { | ||
given: | ||
String longString = (1..100).collect { "$it" }.join("") | ||
println longString | ||
5000.times { println "System out line $it"} | ||
|
||
when: | ||
int actual = 1 | ||
|
||
then: | ||
5000.times { System.err.println("System err line $it") } | ||
actual == 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.